-------------------------------------------------- --------------------------------------------------
PHP doesn’t have many arithmetic symbols, but not all of them do you know how to use?
Here let’s talk about the upgraded version of PHP’s arithmetic symbols: ++, --, haha.
----------------------@chenwei
++ means self-increment,
-- That is, self-decreasing.
Practical application:
$a = 10; $a++ = ? //Use first and then add, the final result is 11
$a = 10; ++$a = ? //Add first and then use, the final result is 11
$a = 10;
$b = $a++ + ++$a;
echo $a;
echo $b; //Let’s do the math and I’ll reply with the answer
-------------------------------------------------- --------------------------------------------------
http://www.cnblogs.com/farwish/p/3795614.html