Vidyalelo
PHP · Q26

Control Structures(Loop In PHP)

Programming · PHP · question 26

Q26

What will be the output of the following PHP code ?

A.
hi
B.
hello
C.
error
Answer
D.
no output

Answer: Option C

Solution

Answer: Option C
Solution:
The if statement has no brackets and it expects a else/else if after a if.