0
if $a= 3 then what's the ++$a and $a++?
2 Answers
+ 1
both will have the same answer 4 in this case
0
$a++ means $a=$a+1, but it is a post-increment.
so even if it plus 1, it will still return to the original value.
that is, if $a=3, $a++=3
and ++$a=4 by the way