How many functions does PHP offer for searching strings using POSIX style regular expression? 10 9 8 7 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() None of the mentioned 1 and 2 All of the mentioned 3 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
POSIX implementation was deprecated in which version of PHP? PHP 4 PHP 5 PHP 5.3 PHP 5.2 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. tea? Hello! My name is Cameron Fox. Coffee? Hello! My name was Cameron Fox. Coffee? Hello! My name was Cameron Fox. tea? 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."; Cont@ct the @uthor of this @rticle @t n@chiketh@ex@mple.com Error Contact the author of this article at nachiketh@ex@mple.com Contact the author of this article at n@chiketh@ex@mple.com 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_unchain() preg_split() preg_destroy() preg_divide() 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. ) Array ( [0] => this is [1] => some text that [2] => we might like to parse. ) this is some text that 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 functions can be used to concatenate array elements to form a single delimited string? implode() explode() concat() concatenate() 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 : ?
POSIX stands for Portable Operating System Interface for Linux Portative Operating System Interface for Linux Portable Operating System Interface for Unix Portative Operating System Interface for Unix TRUE ANSWER : ? YOUR ANSWER : ?