How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions. 9 8 10 7 TRUE ANSWER : ? YOUR ANSWER : ?
Parameter flags was added in which version of PHP? PHP 4.1 PHP 4.3 PHP 4.0 PHP 4.2 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$author = "nachiketh@example.com";<br/>$author = str_replace("a","@",$author);<br/>echo "Contact the author of this article at $author."; Contact the author of this article at n@chiketh@ex@mple.com Contact the author of this article at nachiketh@ex@mple.com Error Cont@ct the @uthor of this @rticle @t n@chiketh@ex@mple.com 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 of the following would be a potential match for the Perl-based regular expression /fo{2,4}/ ?<br/>1. fol<br/>2. fool<br/>3. fooool<br/>4. fooooool Only 1 2 and 3 1, 3 and 4 1 and 4 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 : ?
Which one of the following preg PHP function is used to do a find and replace on a string or an array? preg_find() preg_replace() preg_findre() preg_find_replace() 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)); Array ( [0] => some text that [1] => we might like to parse. ) [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] => this is [1] => some text that [2] => we might like to parse. ) TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions is used to search a string? preg_match preg_find preg_search preg_found TRUE ANSWER : ? YOUR ANSWER : ?