RE: [PHP] Alphabet

From: Date: Thu, 07 Mar 2002 13:58:39 +0000
Subject: RE: [PHP] Alphabet
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87623@lists.php.net to get a copy of this message
Or how about: foreach(range('A', 'Z') AS $val){ echo $val; } range('A', 'Z') will produce an array of character A thru Z. http://www.php.net/manual/en/function.range.php Robert Zwink http://www.zwink.net/daid.php -----Original Message----- From: Nico Vrouwe [mailto:nico@gojelly.com] Sent: Thursday, March 07, 2002 8:42 AM To: David Apthorpe; php-general@lists.php.net Subject: Re: [PHP] Alphabet Very true. oops :) /Nico ----- Original Message ----- From: "David Apthorpe" <david@davidapthorpe.co.uk> To: "'Nico Vrouwe'" <nico@gojelly.com>; <php-general@lists.php.net> Sent: Thursday, March 07, 2002 2:34 PM Subject: RE: [PHP] Alphabet : Shouldn't it be $i<=ord('Z') ? : : David Apthorpe : : -----Original Message----- : From: Nico Vrouwe [mailto:nico@gojelly.com] : Sent: 07 March 2002 13:30 : To: php-general@lists.php.net : Subject: Re: [PHP] Alphabet : : $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 : > : > : > : : : : -- : PHP General Mailing List (http://www.php.net/) : To unsubscribe, visit: http://www.php.net/unsub.php : : --- : Incoming mail is certified Virus Free. : Checked by AVG anti-virus system (http://www.grisoft.com). : Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/2002 : : : --- : Outgoing mail is certified Virus Free. : Checked by AVG anti-virus system (http://www.grisoft.com). : Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/2002 : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#87623) next »