Vidyalelo
PHP · Q47

Control Structures(Loop In PHP)

Programming · PHP · question 47

Q47

What will be the output of the following PHP code ?

A.
0
B.
infinite loop
C.
01
D.
1
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
As it is a post increment, it checks and then does not enter the loop, thus prints only 1.