I would like to generate a membership number consisting of alphanumeric characters, removing i
o
and l
to save confusion when typing. to be done in php (also using Laravel 5.7 if that matters - but i feel this is a php question)
If simply using 0-9 the membership number would start at 00001 for the 1st one and the 11th person would have 00011. I would like to use alphanumeric characters from 0-9 + a-z (removing said letters)
0-9 (total 10 characters), abcdefghjkmnpqrstuvwxyz (total 23 characters) - this giving a total of 33 characters in each count cycle (0-10+a-Z). instead of just 10 (0-10)
So the first membership number would still be 00001 where as the 12th would now be 0000a, 14th 0000c and 34th would be 0001a.
To summarize i need a way of defining the characters for counting in a way that can be generated based on the id of a user.
I hope I have explained this well enough.