Vidyalelo
PHP · Q101

Operators And Expressions

Programming · PHP · question 101

Q101

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.