Vidyalelo
PHP · Q104

Operators And Expressions

Programming · PHP · question 104

Q104

What will be the output of the following PHP code ?

A.
10
B.
0
Answer
C.
true0
D.
true10

Answer: Option B

Solution

Answer: Option B
Solution:
In if condition when the first case is 0 and is an && operation then the second command is not executed.