Re: Alphabet
| From: | Nico Vrouwe | Date: | Thu, 07 Mar 2002 13:29:52 +0000 |
| Subject: | Re: Alphabet | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87620@lists.php.net to get a copy of this message | ||
$i<ord('Z') seems easier to me than $i<ord('A')+26 :)
/Nico
"Edward Van Bilderbeek - Bean It" <edward@bean-it.nl> wrote in message
news:002601c1c5c4$d008e3f0$2d48c23e@VANBILDE01...
> something like:
>
> for ($i=ord('A'); $i<ord('A')+26; $i++) {
> $str .= chr($i);
> }
>
> print $str;
>
> Greets,
>
> Edward
>
>
> ----- Original Message -----
> From: "Jeroen Timmers" <maillist@start4me.nl>
> To: "[General]" <php-general@lists.php.net>
> Sent: Thursday, March 07, 2002 11:37 AM
> Subject: [PHP] Alphabet
>
>
> Is there a simple function to generate
> the alphabet with php
>
> Thx
>
> Jeroen
>
>
>