πŸ“Š PHP
Q. What will be the output of the following PHP code?
Code:
$name = "ruCHiSharma";
if (ereg("([^a-z])",$name))
echo "Name must be all lowercase!";
else
echo "Name is all lowercase!";
?>
  • (A) Name is all lowercase!
  • (B) No Output is returned
  • (C) Name must be all lowercase!
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) Name must be all lowercase!

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
311
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ruchi Sharma
Publisher
πŸ“ˆ
88%
Success Rate