Vidyalelo
PHP · Q14

Control Structures(Loop In PHP)

Programming · PHP · question 14

Q14

What will be the output of the following PHP code ? y && 1||1) print "hi" ; else print "how are u"; ?>

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

Answer: Option B

Solution

Answer: Option B
Solution:
Expression evaluates to true.