Vidyalelo
PHP · Q109

Operators And Expressions

Programming · PHP · question 109

Q109

What will be the output of the following PHP code ?

A.
58
B.
59
Answer
C.
109
D.
108

Answer: Option B

Solution

Answer: Option B
Solution:
a is set to 5 in the if condition and b is postdecremented in the print statement.