Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: [PHP-DB] RE : Subject: Letters loop
This a better and small aproach!!!
Thanks!!!

-----Original Message-----
From: Neil Smith [MVP, Digital media]
[mailto:php@comatose.freeserve.co.uk]
Sent: Jueves, 26 de Mayo de 2005 07:35 a.m.
To: php-db@lists.php.net
Cc: miguel.guirao@mail.telcel.com
Subject: [PHP-DB] RE : Subject: Letters loop


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.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this thread to moderator Post Follow-up to this message
Old Post
Miguel Guirao
05-27-05 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:31 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.