Vidyalelo
PHP · Q29

Control Structures(Loop In PHP)

Programming · PHP · question 29

Q29

What will be the output of the following PHP code ?

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

Answer: Option B

Solution

Answer: Option B
Solution:
Computing the expression in the if clause,it sums upto to 2 which is a positive value.