I want to convert a number to a 5 digit string. String characters: az, AZ, and 0-9. Each combination of this code is incremented by "1"
I do not know how to explain this, so I will give you an example. for instance
1 = aaaaa 26 = aaaaz 27 = aaaaA 52 = aaaaZ 53 = aaaa0 62 = aaaa9 63 = aaaba 89 = aaabz 90 = aaab0
So, if I have the number 1035, is there a way that PHP can calculate the code for this?
Sorry, my question is a bit vague.
The reason I want to do this is because I donβt want to show the primary key identifier of the database, I want to show this base63 format.
source share