Learning PHP and MySQL
Example 03-23 Using autoincrement to add to a variable
<?php
$counter=1;
$counter++;
echo $counter
?>
Produces:
2
Posted by on 07/19 at 03:58 PM
Next entry: Example 03-24 Using the autodecrement operator
Previous entry: Example 03-22 PHP mathematical function usage