Vidyalelo
PHP · Q59

Control Structures(Loop In PHP)

Programming · PHP · question 59

Q59

What will be the output of the following PHP code ? 0) print i; ?>

A.
210
B.
10
C.
no output
D.
infinite loop
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The loop never ends as i is always incremented and then decremented.