Vidyalelo
PHP · Q115

Operators And Expressions

Programming · PHP · question 115

Q115

What will be the output of the following PHP code ?

A.
5
B.
error
Answer
C.
6
D.
7

Answer: Option B

Solution

Answer: Option B
Solution:
Operator ++ can be done only on variables.