PHP Regular Expressions How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions. 9 7 10 8 9 7 10 8 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 Which one of the following functions is used to search a string? preg_find preg_found preg_search preg_match preg_find preg_found preg_search preg_match 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!"; Error Username is all lowercase! Username must be all lowercase! No Output is returned Error Username is all lowercase! Username must be all lowercase! No Output is returned ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions [:alpha:] can also be specified as. [A-Za-z0-9] [A-z] [A-za-z] [a-z] [A-Za-z0-9] [A-z] [A-za-z] [a-z] ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$foods = array("pasta", "steak", "fish", "potatoes");$food = preg_grep("/^s/", $foods);print_r($food); Array ( [0] => potatoes ) Array ( [1] => steak ) Array ( [3] => potatoes ) Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes ) Array ( [0] => potatoes ) Array ( [1] => steak ) Array ( [3] => potatoes ) Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes ) ANSWER DOWNLOAD EXAMIANS APP