Vidyalelo
PHP · Q58

Control Structures(Loop In PHP)

Programming · PHP · question 58

Q58

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

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

Answer: Option A

Solution

Answer: Option A
Solution:
The loop ends when i becomes 0.