note 80242 deleted from function.chr by felipe
| From: | felipe@php.net | Date: | Mon, 07 Jan 2008 01:45:06 +0000 |
| Subject: | note 80242 deleted from function.chr by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134908@lists.php.net to get a copy of this message | ||
Note Submitter: jasper at jtey dot com
----
If you're looking to enumerate through the alphabet (A-Z) quickly, consider the following:
<?php
$start = 65; // ascii value for uppercase A
for ($i = $start; $i < $start +26; $i++) {
echo chr($i);
}
?>