Vidyalelo
PHP · Q19

Control Structures(Loop In PHP)

Programming · PHP · question 19

Q19

What will be the output of the following PHP code ?

A.
error
B.
2
Answer
C.
hi
D.
how are u

Answer: Option B

Solution

Answer: Option B
Solution:
Enters if else as first condition is false and thus x is set to 2.