Vidyalelo
PHP · Q112

Operators And Expressions

Programming · PHP · question 112

Q112

What will be the output of the following PHP code ?

A.
5
B.
0
C.
10
D.
1
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
First b and c are added and then tested if d=5,which is true thus return 1.