PHP Regular Expressions What will be the output of the following PHP code?$number = array(0,1,two,three,four,5);$num = preg_grep("/[0-5]/", $number);print_r($num); Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5) Array([0]=>0 [1]=>1 [5]=>5) Array([2]=>two [3]=>three [4]=>four) Array([1]=> 1) Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5) Array([0]=>0 [1]=>1 [5]=>5) Array([2]=>two [3]=>three [4]=>four) Array([1]=> 1) ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following regular expression matches any string containing zero or one p? P? p# p+ p* P? p# p+ p* ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following is not a preg PHP function? preg_match preg_split preg_matchall preg_match_all preg_match preg_split preg_matchall preg_match_all ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$text = "this istsome text thatnwe might like to parse.";print_r(split("[nt]",$text)); Array ( [0] => this is [1] => some text that [2] => we might like to parse. ) [0] => this is [1] => some text that [2] => we might like to parse. this is some text that we might like to parse. Array ( [0] => some text that [1] => we might like to parse. ) Array ( [0] => this is [1] => some text that [2] => we might like to parse. ) [0] => this is [1] => some text that [2] => we might like to parse. this is some text that we might like to parse. Array ( [0] => some text that [1] => we might like to parse. ) ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$line = "You like dogs. I hate dogs. We should marry."$sen = preg_split('/./', $line);print_r($sen); Error Array([0]=>You like dogs. I hate dogs. We should marry.) Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.) You like dogs. I hate dogs. We should marry. Error Array([0]=>You like dogs. I hate dogs. We should marry.) Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.) You like dogs. I hate dogs. We should marry. ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following functions finds the last occurrence of a string, returning its numerical position? strpos() strrpos() strlastpos() strlast() strpos() strrpos() strlastpos() strlast() ANSWER DOWNLOAD EXAMIANS APP