Vidyalelo
PHP · Q81

Control Structures(Loop In PHP)

Programming · PHP · question 81

Q81

What will be the output of the following PHP code ?

A.
AshleyBaleBlank
Answer
B.
Bale
C.
AshleyShrek
D.
BaleBlank

Answer: Option A

Solution

Answer: Option A
Solution:
Only Bale is printed as $x++ is done before printing and then checked.