1. PHP has long supported two regular expression implementations known as _______ and _______.
1. Perl
2. PEAR
3. Pearl
4. POSIX
1. Perl
2. PEAR
3. Pearl
4. POSIX
2. Which one of the following regular expression matches any string containing zero or one p?
3. [:alpha:] can also be specified as.
4. How many functions does PHP offer for searching strings using POSIX style regular expression?
5. What will be the output of the following PHP code?
<?php
$username = "jasoN";
if (ereg("([^a-z])",$username))
echo "Username must be all lowercase!";
else
echo "Username is all lowercase!";
?>
<?php
$username = "jasoN";
if (ereg("([^a-z])",$username))
echo "Username must be all lowercase!";
else
echo "Username is all lowercase!";
?>