Vidyalelo
PHP · Q105

Operators And Expressions

Programming · PHP · question 105

Q105

What will be the output of the following PHP code ?

A.
20
B.
true0
Answer
C.
0
D.
true20

Answer: Option B

Solution

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