A
Q. What is the result of the following PHP code?
Code:
<?php
$username = "Alex";
if (preg_match("([^a-z])",$username))
echo "Username must be all lowercase!";
else
echo "Username is all lowercase!";
?>
$username = "Alex";
if (preg_match("([^a-z])",$username))
echo "Username must be all lowercase!";
else
echo "Username is all lowercase!";
?>
- Correct Answer - Option(B)
- Views: 22
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.