Vidyalelo
PHP · Q123

Operators And Expressions

Programming · PHP · question 123

Q123

What will be the output of the following PHP code ?

A.
3
B.
4
C.
5
D.
error
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
First preincrement is done and the result is a number,thus post increment cannot be performed on it.