Vidyalelo
PHP · Q35

Control Structures(Loop In PHP)

Programming · PHP · question 35

Q35

What will be the output of the following PHP code ?

A.
hihellohi1
B.
no output
Answer
C.
hihi1
D.
hi1

Answer: Option B

Solution

Answer: Option B
Solution:
As break is provided before print statement in case 2 it breaks the loop before printing.