You need to use the PHP alphanumeric account, which starts with A001 and goes up ZZ999
It starts with A001 and continues as A002, A003 .....
and after A999 - it changes to B001, etc. up to ZZ999
my code only works from A999 to Z999.
How can I do that...?
Can anyone here help me ??
Thanks in advance!
foreach (range('A', 'Z') as $letter) {
foreach (range(1, 100) as $number) {
echo $letter.str_pad($number, 3, '0', STR_PAD_LEFT)."\n";
}
}
source
share