PHP Regular Expressions Which one of the following preg PHP function is used to do a find and replace on a string or an array? preg_find_replace() preg_find() preg_findre() preg_replace() preg_find_replace() preg_find() preg_findre() preg_replace() 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. ) Array ( [0] => some text that [1] => we might like to parse. ) this is some text that we might like to parse. [0] => this is [1] => some text that [2] => we might like to parse. Array ( [0] => this is [1] => some text that [2] => we might like to parse. ) Array ( [0] => some text that [1] => we might like to parse. ) this is some text that we might like to parse. [0] => this is [1] => some text that [2] => we might like to parse. ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$url = "contact@examians.com";echo ltrim(strstr($url, "@"),"@"); examians.com contact@examians.com contact@ contact examians.com contact@examians.com contact@ contact ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions How many functions does PHP offer for searching strings using POSIX style regular expression? 7 9 8 10 7 9 8 10 ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$username = "jasoN";if (ereg("([^a-z])",$username))echo "Username must be all lowercase!";elseecho "Username is all lowercase!"; Username must be all lowercase! Error Username is all lowercase! No Output is returned Username must be all lowercase! Error Username is all lowercase! No Output is returned 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 You like dogs. I hate dogs. We should marry. Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.) Array([0]=>You like dogs. I hate dogs. We should marry.) Error You like dogs. I hate dogs. We should marry. Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.) Array([0]=>You like dogs. I hate dogs. We should marry.) ANSWER DOWNLOAD EXAMIANS APP