Learning PHP and MySQL

Example 03-24 Using the autodecrement operator

<?php
$counter
=1;
$counter--;
echo  
$counter
?>

Produces:

0

Posted by on 07/19 at 03:58 PM

Next entry: Example 03-25 Using pre- and post-increment

Previous entry: Example 03-23 Using autoincrement to add to a variable

<< Back to main