Q79
What will be the output of the following PHP code ? i; i--) print i; ?>
A.
infinite loop
B.
0 1 2 3 4 5
C.
0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5
D.
no output
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
The second loop does not execute as the check condition is always false.