Vidyalelo
PHP · Q1

Control Structures(Loop In PHP)

Programming · PHP · question 1

Q1

What will be the output of the following PHP code?

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

Answer: Option A

Solution

Answer: Option A
Solution:
Uninitialized x is set to 0, thus if condition fails.