PHP Regular Expressions What will be the output of the following PHP code?$url = "contact@examians.com";echo ltrim(strstr($url, "@"),"@"); contact@examians.com contact contact@ examians.com contact@examians.com contact contact@ examians.com 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_divide() preg_unchain() preg_split() preg_destroy() preg_divide() preg_unchain() preg_split() preg_destroy() ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Parameter flags was added in which version of PHP? PHP 4.2 PHP 4.3 PHP 4.1 PHP 4.0 PHP 4.2 PHP 4.3 PHP 4.1 PHP 4.0 ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions Which one of the following functions finds the last occurrence of a string, returning its numerical position? strrpos() strpos() strlast() strlastpos() strrpos() strpos() strlast() strlastpos() 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 must be all lowercase! Username is all lowercase! Error No Output is returned Username must be all lowercase! Username is all lowercase! Error No Output is returned ANSWER DOWNLOAD EXAMIANS APP
PHP Regular Expressions What will be the output of the following PHP code?$number = array(0,1,two,three,four,5);$num = preg_grep("/[0-5]/", $number);print_r($num); Array([1]=> 1) Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5) Array([0]=>0 [1]=>1 [5]=>5) Array([2]=>two [3]=>three [4]=>four) Array([1]=> 1) Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5) Array([0]=>0 [1]=>1 [5]=>5) Array([2]=>two [3]=>three [4]=>four) ANSWER DOWNLOAD EXAMIANS APP