Vidyalelo
PHP · Q82

Control Structures(Loop In PHP)

Programming · PHP · question 82

Q82

What will be the output of the following PHP code ?

A.
AshleyBaleBlank
B.
BaleShrek
Answer
C.
AshleyBlank
D.
Bale

Answer: Option B

Solution

Answer: Option B
Solution:
x is incremented only inside loop i the if condition.