MrXander Posted April 24, 2008 Share Posted April 24, 2008 Hi Guys, Need a little help. I need to generate a list, for example: aa ab ac ad through to az After that, I need to generate: ba bb bc bd through to bz So on and so forth. Is there anyway I can do this? Thanks in advance!! Link to comment https://forums.phpfreaks.com/topic/102681-generating-a-list/ Share on other sites More sharing options...
micah1701 Posted April 24, 2008 Share Posted April 24, 2008 <?php foreach(range('a','z') as $letter1){ foreach(range('a','z') as $letter2){ echo $letter1.$letter2."<br> \n"; } } ?> Link to comment https://forums.phpfreaks.com/topic/102681-generating-a-list/#findComment-525863 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.