tomverel Posted November 15, 2010 Share Posted November 15, 2010 Can this be done with php? aaa aab aac ... zzz Quote Link to comment https://forums.phpfreaks.com/topic/218790-how-to-generate-aaa-zzz/ Share on other sites More sharing options...
BlueSkyIS Posted November 15, 2010 Share Posted November 15, 2010 yes! Quote Link to comment https://forums.phpfreaks.com/topic/218790-how-to-generate-aaa-zzz/#findComment-1134726 Share on other sites More sharing options...
BlueSkyIS Posted November 15, 2010 Share Posted November 15, 2010 sorry, couldn't resist. <?php foreach(range('a','z') as $i) { foreach(range('a','z') as $j) { foreach(range('a','z') as $k) { echo "$i$j$k<br />"; } } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/218790-how-to-generate-aaa-zzz/#findComment-1134728 Share on other sites More sharing options...
tomverel Posted November 16, 2010 Author Share Posted November 16, 2010 yes! LOL and thx for the code. It works like charm. Quote Link to comment https://forums.phpfreaks.com/topic/218790-how-to-generate-aaa-zzz/#findComment-1134739 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.