RE: [PHP] stepping through alphabet
| From: | Jay Blanchard | Date: | Wed, 19 Nov 2003 16:14:51 +0000 |
| Subject: | RE: [PHP] stepping through alphabet | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170306@lists.php.net to get a copy of this message | ||
[snip]
'Z'+1 is defined to be 'AA' (it says that in the manual, too!), so your
loop has to be:
for($letter = 'A'; $letter <= 'AA'; $letter++){
echo $letter . "\n";
}
[/snip]
Run this, you'll be surprised at what you get.