Alphabet Array?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Bigun
Forum Contributor
Posts: 237
Joined: Tue Jun 13, 2006 10:50 am

Alphabet Array?

Post by Bigun »

Is there a loop close to the for(); loop for alphabetical characters?

Like a-z?
Robert Plank
Forum Contributor
Posts: 110
Joined: Sun Dec 26, 2004 9:04 pm
Contact:

Post by Robert Plank »

Code: Select all

$alphabet = range('a', 'z');

foreach ($alphabet as $letter) {
   // do whatever in here...
}
Post Reply