Vidyalelo
PHP · Q76

Control Structures(Loop In PHP)

Programming · PHP · question 76

Q76

What will be the output of the following PHP code ?

A.
0 1 2 3 4
B.
0 1 2 3
Answer
C.
0 1 2 3 4 5
D.
error

Answer: Option B

Solution

Answer: Option B
Solution:
The break statement after breaks the loop after i=3,does not print anymore.