Vidyalelo
PHP · Q2

Control Structures(Loop In PHP)

Programming · PHP · question 2

Q2

What will be the output of the following PHP code ?

A.
hi
B.
no output
C.
error
D.
how are u
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
x is incremented after if which evaluates to false.