note 9773 added to Incrementing/Decrementing Operators
| From: | csw at tuxdocs dot org | Date: | Wed, 22 Nov 2000 22:11:31 +0000 |
| Subject: | note 9773 added to Incrementing/Decrementing Operators | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8008@lists.php.net to get a copy of this message | ||
I didnt' notice it mentioned anywhere else around here, so I thought I'd mention it. Maybe
it's obvious anyway but here goes:
the increment and decrement operators work well on letters too.
$x = A;
$x++;
echo $x;
will return B (and so on..)
http://www.php.net/manual/language.operators.increment.php