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 Which one of the following functions finds the last occurrence of a string, returning its numerical position? strrpos() strlastpos() strlast() strpos() strrpos() strlastpos() strlast() strpos() ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which among the following is/are not a metacharacter?1. /a2. /A3. /b4. /B 2, 3 and 4 2 and 4 Only 1 1 and 3 2, 3 and 4 2 and 4 Only 1 1 and 3 ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$author = "nachiketh@example.com";$author = str_replace("a","@",$author);echo "Contact the author of this article at $author."; Cont@ct the @uthor of this @rticle @t n@chiketh@ex@mple.com Error Contact the author of this article at n@chiketh@ex@mple.com Contact the author of this article at nachiketh@ex@mple.com Cont@ct the @uthor of this @rticle @t n@chiketh@ex@mple.com Error Contact the author of this article at n@chiketh@ex@mple.com Contact the author of this article at nachiketh@ex@mple.com 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 was Cameron Fox. tea? Hello! My name is Cameron Fox. Coffee? Hello! My name was Cameron Fox. Coffee? Hello! My name is Cameron Fox. tea? Hello! My name was Cameron Fox. tea? Hello! My name is Cameron Fox. Coffee? Hello! My name was Cameron Fox. Coffee? 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)); this is some text that 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. ) [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] => this is [1] => some text that [2] => we might like to parse. ) Array ( [0] => some text that [1] => we might like to parse. ) [0] => this is [1] => some text that [2] => we might like to parse. ANSWER DOWNLOAD EXAMIANS APP