Re: stepping through alphabet
| From: | Chris Boget | Date: | Wed, 19 Nov 2003 14:43:55 +0000 |
| Subject: | Re: stepping through alphabet | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170293@lists.php.net to get a copy of this message | ||
> I tested this and found two small problems. The code works if you do
> this (I was myself amazed that letters would increment)
But is that a bug? Or a feature?
You could also do this, which would probably be more universal:
// 65 through 90 for upper case
// 97 through 122 for lower case
for( $i = 65; $i <= 90; $i++ ) {
echo chr( $i );
}
Chris