Q5
What will be the output of the following PHP code?
A.
Error
B.
Username must be all lowercase!
AnswerC.
Username is all lowercase!
D.
No Output is returned
Answer: Option B
Solution
Answer: Option B
Solution:
Because the provided username is not all lowercase, ereg() will not return FALSE (instead returning the length of the matched string, which PHP will treat as TRUE), causing the message to output.