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,
om: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 8:59 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Alphabet
Or how about:
foreach(range('A', 'Z') AS $val){
echo $val;
}
range('A', 'Z') will produce an array of character A
Nico Vrouwe wrote:
> $i
now $a contains 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
om: Nico Vrouwe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 8:42 AM
To: David Apthorpe; [EMAIL PROTECTED]
Subject: Re: [PHP] Alphabet
Very true. oops :)
/Nico
- Original Message -
From: "David Apthorpe" <[EMAIL PROTECTED]>
To: "'Nico Vrouwe
Very true. oops :)
/Nico
- Original Message -
From: "David Apthorpe" <[EMAIL PROTECTED]>
To: "'Nico Vrouwe'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 2:34 PM
Subject: RE: [PHP] Alphabet
: Sh
Message -
> From: "Jeroen Timmers" <[EMAIL PROTECTED]>
> To: "[General]" <[EMAIL PROTECTED]>
> Sent: Thursday, March 07, 2002 11:37 AM
> Subject: [PHP] Alphabet
>
>
> Is there a simple function to generate
> the alphabet with php
>
&g
;[General]" <[EMAIL PROTECTED]>
> Sent: Thursday, March 07, 2002 11:37 AM
> Subject: [PHP] Alphabet
>
>
> Is there a simple function to generate
> the alphabet with php
>
Don't know if it can get any simpler than:
$alphabet = "abc..";
--
Jason Wo
something like:
for ($i=ord('A'); $i
To: "[General]" <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 11:37 AM
Subject: [PHP] Alphabet
Is there a simple function to generate
the alphabet with php
Thx
Jeroen
--
PHP General Mailing List (http://www.php.net/)
T
Is there a simple function to generate
the alphabet with php
Thx
Jeroen
9 matches
Mail list logo