Vidyalelo
PHP · Q106

Operators And Expressions

Programming · PHP · question 106

Q106

What will be the output of the following PHP code ?

A.
No 2
Answer
B.
Yes 1
C.
Yes 2
D.
No 1

Answer: Option A

Solution

Answer: Option A
Solution:
The first condition returns true and increments but the second condition is false.