Increment¶
Increment generally refers to the process of increasing or adding a small amount to a value, or simply one unit.
In PHP, increments usually refer to the pre-plusplus and post-plusplus.
<?php
$a = 1;
echo ++$a; // pre plus plus : displays 1, and $a ends with 2
echo $a++; // post plus plus
echo $a += 1; // increment
?>