Vidyalelo
PHP · Q84

Control Structures(Loop In PHP)

Programming · PHP · question 84

Q84

What will be the output of the following PHP code ?

A.
iiiii
Answer
B.
infinite loop
C.
iiiiiiiiiiiiiiiiiiiiiiiii
D.
no output

Answer: Option A

Solution

Answer: Option A
Solution:
The i value is changed in the inner loop and reaches five, thus does not execute the second outer loop.