magnetica Posted March 9, 2007 Share Posted March 9, 2007 Hi Is there any way to loop through the alphabet? I mean like you can increment numbers, was wondering if this is possible with letter? Thanks Link to comment https://forums.phpfreaks.com/topic/41942-loop-through-the-alphabet/ Share on other sites More sharing options...
willpower Posted March 9, 2007 Share Posted March 9, 2007 what about something like for ($character = 65; $character < 91; $character++) { echo chr($character); Link to comment https://forums.phpfreaks.com/topic/41942-loop-through-the-alphabet/#findComment-203348 Share on other sites More sharing options...
magnetica Posted March 9, 2007 Author Share Posted March 9, 2007 Thanks worked perfectly.. You just missed the ending } Lol.. Thanks A lot Link to comment https://forums.phpfreaks.com/topic/41942-loop-through-the-alphabet/#findComment-203358 Share on other sites More sharing options...
willpower Posted March 9, 2007 Share Posted March 9, 2007 np...it was a TEST lol...not an ommission....honest! Link to comment https://forums.phpfreaks.com/topic/41942-loop-through-the-alphabet/#findComment-203361 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.