Vidyalelo
PHP · Q34

Control Structures(Loop In PHP)

Programming · PHP · question 34

Q34

What will be the output of the following PHP code ?

A.
hihellohi1
B.
hello
Answer
C.
hihi1
D.
hi1

Answer: Option B

Solution

Answer: Option B
Solution:
As hello is provided after case2 it breaks the loop.