php > $a = 4;
php > echo $a+++$a++;
php > 9
Why is the result equal to 9
not 8
?
a++
will increment the value of $a
, but return the original value that I held before being incremented. So $a++
return 4
and $a
return 4
, the result should be 8 = 4 + 4
?