Which one of the following functions can be used to concatenate array elements to form a single delimited string? concat() explode() implode() concatenate() 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)); this is some text that we might like to parse. Array ( [0] => some text that [1] => we might like to parse. ) Array ( [0] => this is [1] => some text that [2] => we might like to parse. ) [0] => this is [1] => some text that [2] => we might like to parse. TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following regular expression matches any string containing zero or one p? p* p# P? p+ 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 Only 1 1 and 3 2, 3 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions is used to search a string? preg_match preg_search preg_find preg_found 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!"; No Output is returned Username must be all lowercase! Error Username is all lowercase! 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 [5]=>5) Array([1]=> 1) Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5) Array([2]=>two [3]=>three [4]=>four) TRUE ANSWER : ? YOUR ANSWER : ?
Say we have two compare two strings which of the following function/functions can you use?<br/>1. strcmp()<br/>2. strcasecmp()<br/>3. strspn()<br/>4. strcspn() 3 and 4 None of the mentioned All of the mentioned 1 and 2 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions will convert a string to all uppercase? uppercase() str_uppercase() struppercase() strtoupper() 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); 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.) Error TRUE ANSWER : ? YOUR ANSWER : ?