Which one of the following is not a preg PHP function? preg_matchall preg_split preg_match_all preg_match TRUE ANSWER : ? YOUR ANSWER : ?
POSIX stands for Portative Operating System Interface for Unix Portable Operating System Interface for Linux Portative Operating System Interface for Linux Portable Operating System Interface for Unix TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following preg PHP functions is used to take a string, and put it in an array? preg_destroy() preg_divide() preg_split() preg_unchain() TRUE ANSWER : ? YOUR ANSWER : ?
How many functions does PHP offer for searching strings using POSIX style regular expression? 9 10 7 8 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 : ?
Which one of the following functions is used to search a string? preg_find preg_match preg_found preg_search TRUE ANSWER : ? YOUR ANSWER : ?
POSIX implementation was deprecated in which version of PHP? PHP 5.3 PHP 5 PHP 4 PHP 5.2 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 Only 1 2, 3 and 4 1 and 3 2 and 4 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 : ?
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! Username must be all lowercase! No Output is returned TRUE ANSWER : ? YOUR ANSWER : ?