Which among the following is/are not a metacharacter?<br/>1. /a<br/>2. /A<br/>3. /b<br/>4. /B 2 and 4 1 and 3 Only 1 2, 3 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions. 8 10 7 9 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo str_pad("Salad", 5)." is good."; SaladSaladSaladSaladSalad is good is good Salad Salad is good is good SaladSaladSaladSaladSalad 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([1]=> 1) Array([2]=>two [3]=>three [4]=>four) Array([0]=>0 [1]=>1 [5]=>5) Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5) TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is not a preg PHP function? preg_matchall preg_split preg_match preg_match_all TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$foods = array("pasta", "steak", "fish", "potatoes");<br/>$food = preg_grep("/^s/", $foods);<br/>print_r($food); Array ( [1] => steak ) Array ( [0] => potatoes ) Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes ) Array ( [3] => potatoes ) TRUE ANSWER : ? YOUR ANSWER : ?
Parameter flags was added in which version of PHP? PHP 4.2 PHP 4.0 PHP 4.1 PHP 4.3 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$username = "jasoN";<br/>if (ereg("([^a-z])",$username))<br/>echo "Username must be all lowercase!";<br/>else<br/>echo "Username is all lowercase!"; Error Username is all lowercase! No Output is returned Username must be all lowercase! TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$name = "What is your name?";<br/>if (preg_match("/name/"),$name)<br/>echo "My name is Will Pitt ";<br/>else<br/>echo "My name is not Will Pitt ";<br/>if (preg_match("/are/"))<br/>echo "I am great"else echo "I am not great"; My name is not Will Pitt I am not great My name is not Will Pitt I am great My name is Will Pitt I am not great My name is Will Pitt I am great TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$url = "contact@examians.com";<br/>echo ltrim(strstr($url, "@"),"@"); contact@examians.com contact examians.com contact@ TRUE ANSWER : ? YOUR ANSWER : ?