PHP Regular Expressions Say we have two compare two strings which of the following function/functions can you use?1. strcmp()2. strcasecmp()3. strspn()4. strcspn() 3 and 4 All of the mentioned 1 and 2 None of the mentioned 3 and 4 All of the mentioned 1 and 2 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/ ?1. fol2. fool3. fooool4. fooooool 2 and 3 1 and 4 1, 3 and 4 Only 1 2 and 3 1 and 4 1, 3 and 4 Only 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following preg PHP functions is used to take a string, and put it in an array? preg_split() preg_unchain() preg_destroy() preg_divide() preg_split() preg_unchain() preg_destroy() preg_divide() ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$username = "jasoN";if (ereg("([^a-z])",$username))echo "Username must be all lowercase!";elseecho "Username is all lowercase!"; Error No Output is returned Username must be all lowercase! Username is all lowercase! Error No Output is returned Username must be all lowercase! Username is all lowercase! ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following regular expression matches any string containing zero or one p? P? p* p# p+ P? p* p# p+ ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$url = "contact@examians.com";echo ltrim(strstr($url, "@"),"@"); examians.com contact contact@ contact@examians.com examians.com contact contact@ contact@examians.com ANSWER DOWNLOAD EXAMIANS APP