Re: Alphabet
| From: | Angel Fenoy | Date: | Sun, 10 Mar 2002 17:46:43 +0000 |
| Subject: | Re: Alphabet | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87914@lists.php.net to get a copy of this message | ||
Robert V. Zwink wrote:
What could be simpler than: $range = implode(" ", range('A', 'Z')); echo $range; result: A B C D . . .The most short expression I found: $r=join('',range(@A,@Z)); echo $r; result: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Am I missing something here? All this loop, chr() & ord() stuff going on. .Function range() is buggy in PHP 4.0.6 and others... range(int, int) is ok, but range(str, str) is not. Saludos Àngel