RE : Subject: Letters loop
| From: | Neil Smith [MVP, Digital media] | Date: | Thu, 26 May 2005 12:35:29 +0000 |
| Subject: | RE : Subject: Letters loop | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-39539@lists.php.net to get a copy of this message | ||
for ($i=1; $i<=26; $i++) {
print(chr(64+$i));} chr() prints the ASCII character corresponding to that number. Upper case A-Z starts at 64 : http://www.lookuptables.com Cheers - Neil
Date: Wed, 25 May 2005 20:37:47 -0700 From: MIGUEL ANTONIO GUIRAO AGUILAR <miguel.guirao@mail.telcel.com> To: php-db@lists.php.net Message-id: <403623405224.405224403623@mail.telcel.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Subject: Letters loop Hi!! I wanna a do a for loop with letters, Is this possible? for ($i = 'A'; $i <= 'Z'; $i++){ // code } -------------------------- MIGUEL GUIRAO AGUILERA Logistica R8 - Telcel Tel: (999) 960.7994 Cel: 9931-60000======================================================== CaptionKit http://www.captionkit.com : Production tools for accessible subtitled internet media, transcripts and searchable video. Supports Real Player, Quicktime and Windows Media Player. VideoChat with friends online, get Freshly Toasted every day at http://www.fresh-toast.net : NetMeeting solutions for a connected world.