Trying to code a general 4 digit alphanumeric series in PHP.
Pattern is as follows
0000
0001
…
…
9999
A000
A001
…
…
A999
B000
…
…
Z999
AA00
…
…
AA99
AB00
…
…
ZZ99
AAA0
…
…
AAA9
AAB0
…
…
ZZZZ
I was trying to make the logic based on the no of Z and no of 9, but could not get anything concrete going.
I am trying to write a code that will return me the next number of the series on inputting the last number of the series.
Any hints or leads will be appreciated.
Thanks in advance.