Vidyalelo
PHP · Q25

Control Structures(Loop In PHP)

Programming · PHP · question 25

Q25

What will be the output of the following PHP code ?

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

Answer: Option C

Solution

Answer: Option C
Solution:
print returns true and when 1 is subtracted it is syntax error.