Vidyalelo
PHP · Q24

Control Structures(Loop In PHP)

Programming · PHP · question 24

Q24

What will be the output of the following PHP code ?

A.
hi
Answer
B.
hihellohi
C.
hihi
D.
no output

Answer: Option A

Solution

Answer: Option A
Solution:
Print returns true and thus the first if statement also is not executed.