Is it possible to get a range with PHP from A to ZZ*?
a b c ... aa ... zx zy zz
For me this didn't work:
range('A', 'ZZ');
It's for PHPExcel, when it gives BE as highest field i'd run through all colums. In this case i only get A, B:
range ('A', 'BE')
You can combine two foreach loops to generate something like that.
Please check this simple solution incrementing char.
How to list from A to Z in PHP, and then on to AA, AB, AC, etc
Use this recursive function to get the exact range from A to ZZ
call function like.
will give you result
A B C . . . ZX ZY ZZ
You could ofcourse write your own function to do this as it seems that the range() function in php doesn't support this. This should be an easy job, since you can just nest the range function in another loop. Something like this:
Just Try this- (tested working fine)
copied from http://php.net/range
Here is a simplified solution in which you can define number of rows and columns you want to generate. This way you will allocate lesser memory.