PHP Regular Expressions [:alpha:] can also be specified as. [A-za-z] [a-z] [A-Za-z0-9] [A-z] [A-za-z] [a-z] [A-Za-z0-9] [A-z] 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!"; Username is all lowercase! Username must be all lowercase! Error No Output is returned Username is all lowercase! Username must be all lowercase! Error No Output is returned ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following preg PHP function is used to do a find and replace on a string or an array? preg_find_replace() preg_find() preg_findre() preg_replace() preg_find_replace() preg_find() preg_findre() preg_replace() ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$author = "nachiketh@example.com";$author = str_replace("a","@",$author);echo "Contact the author of this article at $author."; Contact the author of this article at nachiketh@ex@mple.com Cont@ct the @uthor of this @rticle @t n@chiketh@ex@mple.com Error Contact the author of this article at n@chiketh@ex@mple.com Contact the author of this article at nachiketh@ex@mple.com Cont@ct the @uthor of this @rticle @t n@chiketh@ex@mple.com Error Contact the author of this article at n@chiketh@ex@mple.com ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$line = "You like dogs. I hate dogs. We should marry."$sen = preg_split('/./', $line);print_r($sen); You like dogs. I hate dogs. We should marry. Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.) Array([0]=>You like dogs. I hate dogs. We should marry.) Error You like dogs. I hate dogs. We should marry. Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.) Array([0]=>You like dogs. I hate dogs. We should marry.) Error 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