Parameter flags was added in which version of PHP? PHP 4.0 PHP 4.2 PHP 4.3 PHP 4.1 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 Will Pitt I am not great My name is not Will Pitt I am not great My name is Will Pitt I am great My name is not Will Pitt I am great TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$line = "You like dogs. I hate dogs. We should marry."<br/>$sen = preg_split('/./', $line);<br/>print_r($sen); Error Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.) You like dogs. I hate dogs. We should marry. Array([0]=>You like dogs. I hate dogs. We should marry.) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo str_pad("Salad", 5)." is good."; is good Salad is good SaladSaladSaladSaladSalad SaladSaladSaladSaladSalad is good Salad is good 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 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? TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$url = "contact@examians.com";<br/>echo ltrim(strstr($url, "@"),"@"); examians.com contact contact@ contact@examians.com TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions can be used to concatenate array elements to form a single delimited string? concatenate() explode() implode() concat() 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 1 and 3 Only 1 2 and 4 2, 3 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions is used to search a string? preg_found preg_search preg_match preg_find 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_split() preg_divide() preg_unchain() TRUE ANSWER : ? YOUR ANSWER : ?