PHP 4 and 5 offer a few shorthand methods for basic numeric operations:
$n = $n + 1; can be specified as $n++;
$n = $n – 1; can be specified as $n–;
$n = $n + 10; can be specified as $n += 10;
$n = $n – 10; can be specified as $n -= 10;
On the subject of shorthand, also check out the PHP Ternary Operator
Tags: PHP, php programmer