Vidyalelo
PHP · Q85

Operators And Expressions

Programming · PHP · question 85

Q85

What will be the output of the following PHP code ?

A.
no output
B.
true 23
Answer
C.
true 22
D.
true 33

Answer: Option B

Solution

Answer: Option B
Solution:
x is preincremented and y is post incremented thus both are 2 in the if condition, later y is incremented.