Page 1 of 1

Alphabet Array?

Posted: Tue Jun 27, 2006 6:40 pm
by Bigun
Is there a loop close to the for(); loop for alphabetical characters?

Like a-z?

Posted: Tue Jun 27, 2006 6:42 pm
by Robert Plank

Code: Select all

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

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