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 was Cameron Fox. Coffee? Hello! My name is Cameron Fox. Coffee? Hello! My name is Cameron Fox. tea? Hello! My name was Cameron Fox. tea? Hello! My name was Cameron Fox. Coffee? Hello! My name is Cameron Fox. Coffee? ANSWER DOWNLOAD EXAMIANS APP
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_replace() preg_find_replace() preg_findre() preg_find() preg_replace() preg_find_replace() preg_findre() preg_find() ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Say we have two compare two strings which of the following function/functions can you use?1. strcmp()2. strcasecmp()3. strspn()4. strcspn() 3 and 4 1 and 2 None of the mentioned All of the mentioned 3 and 4 1 and 2 None of the mentioned All of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following functions will convert a string to all uppercase? str_uppercase() struppercase() uppercase() strtoupper() str_uppercase() struppercase() uppercase() strtoupper() ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?echo str_pad("Salad", 5)." is good."; Salad is good is good Salad SaladSaladSaladSaladSalad is good is good SaladSaladSaladSaladSalad Salad is good is good Salad SaladSaladSaladSaladSalad is good is good SaladSaladSaladSaladSalad ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following functions finds the last occurrence of a string, returning its numerical position? strlast() strrpos() strpos() strlastpos() strlast() strrpos() strpos() strlastpos() ANSWER DOWNLOAD EXAMIANS APP