Which one of the following preg PHP function is used to do a find and replace on a string or an array? preg_findre() preg_replace() preg_find_replace() preg_find() TRUE ANSWER : ? YOUR ANSWER : ?
Which among the following is/are not a metacharacter?<br/>1. /a<br/>2. /A<br/>3. /b<br/>4. /B 2 and 4 2, 3 and 4 Only 1 1 and 3 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$number = array(0,1,two,three,four,5);<br/>$num = preg_grep("/[0-5]/", $number);<br/>print_r($num); Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5) Array([0]=>0 [1]=>1 [5]=>5) Array([1]=> 1) Array([2]=>two [3]=>three [4]=>four) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$str = "Hello! My name is Cameron Fox. Coffee?";<br/>$find = array('/is/','/coffee/');<br/>$replace = array('/was/','/tea/');<br/>echo preg_replace ($find, $replace, $str); Hello! My name was Cameron Fox. Coffee? Hello! My name was Cameron Fox. tea? Hello! My name is Cameron Fox. Coffee? Hello! My name is Cameron Fox. tea? TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo str_pad("Salad", 5)." is good."; Salad is good SaladSaladSaladSaladSalad is good is good SaladSaladSaladSaladSalad is good Salad TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions finds the last occurrence of a string, returning its numerical position? strrpos() strpos() strlastpos() strlast() TRUE ANSWER : ? YOUR ANSWER : ?
PHP has long supported two regular expression implementations known as _______ and _______.<br/>1. Perl<br/>2. PEAR<br/>3. Pearl<br/>4. POSIX 2 and 3 1 and 2 1 and 4 2 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$text = "this istsome text thatnwe might like to parse.";<br/>print_r(split("[nt]",$text)); [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. ) this is some text that we might like to parse. Array ( [0] => some text that [1] => we might like to parse. ) TRUE ANSWER : ? YOUR ANSWER : ?
POSIX stands for Portative Operating System Interface for Unix Portative Operating System Interface for Linux Portable Operating System Interface for Linux Portable Operating System Interface for Unix TRUE ANSWER : ? YOUR ANSWER : ?