Re: Alphabet
| From: | Angel Fenoy | Date: | Fri, 08 Mar 2002 00:42:10 +0000 |
| Subject: | Re: Alphabet | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87723@lists.php.net to get a copy of this message | ||
Nico Vrouwe wrote:
$i<ord('Z') seems easier to me than $i<ord('A')+26 :)Easier: <?php for ($a = $i = 'A'; $i != 'Z'; $a .= ++$i) ; ?> now $a contains 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'