Q:

What will be the output of the following PHP code?

0

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!";
    ?>

  1. Error
  2. Username must be all lowercase!
  3. Username is all lowercase!
  4. No Output is returned

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (b).Username must be all lowercase

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

PHP STRINGS AND REGULAR EXPRESSIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
POSIX implementation was deprecated in which versi... >>
<< How many functions does PHP offer for searching st...