Vidyalelo
PHP · Q72

Control Structures(Loop In PHP)

Programming · PHP · question 72

Q72

What will be the output of the following PHP code ?

A.
hihihi
B.
hihellohihellohihello
C.
hellohellohello
D.
hi
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
When break is encountered it leaves the loop.