I know how to list from A to Z:
foreach (range('A', 'Z') as $char) { echo $char . "\n"; }
But how do I go from here to the list of AA, AB, AC, AD, ... AZ, BA, BB, BC, etc.?
I quickly searched Google and found nothing, although I think the approach will be different.
I think I can do this using a for loop and an array with the letters inside, although this way seems a bit crude.
Any other way?
Thanks.
source share