PHP Regular Expressions Which one of the following is not a preg PHP function? preg_split preg_matchall preg_match_all preg_match preg_split preg_matchall preg_match_all preg_match 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 ( [3] => potatoes ) Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes ) Array ( [1] => steak ) Array ( [0] => potatoes ) Array ( [3] => potatoes ) Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes ) Array ( [1] => steak ) Array ( [0] => potatoes ) 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!"; No Output is returned Username is all lowercase! Username must be all lowercase! Error No Output is returned Username is all lowercase! Username must be all lowercase! Error ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$str = "Hello! My name is Cameron Fox. Coffee?";$find = array('/is/','/coffee/');$replace = array('/was/','/tea/');echo preg_replace ($find, $replace, $str); Hello! My name is Cameron Fox. tea? Hello! My name is Cameron Fox. Coffee? Hello! My name was Cameron Fox. Coffee? Hello! My name was Cameron Fox. tea? Hello! My name is Cameron Fox. tea? Hello! My name is Cameron Fox. Coffee? Hello! My name was Cameron Fox. Coffee? Hello! My name was Cameron Fox. tea? ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions. 10 9 7 8 10 9 7 8 ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions [:alpha:] can also be specified as. [a-z] [A-z] [A-za-z] [A-Za-z0-9] [a-z] [A-z] [A-za-z] [A-Za-z0-9] ANSWER DOWNLOAD EXAMIANS APP