Vidyalelo
PHP · Q45

Control Structures(Loop In PHP)

Programming · PHP · question 45

Q45

What will be the output of the following PHP code ?

A.
2
B.
3
Answer
C.
0
D.
1

Answer: Option B

Solution

Answer: Option B
Solution:
The increment happens and then the check happens.