I am looking to create an auto incrementing unique string using PHP, containing [a-Z 0-9] starting at 2 chars long and growing when needed.
This is for a url shrinker so each string (or alias) will be saved in the database attached to a url.
Any insight would be greatly appreciated!
Here’s an implementation of an
incrfunction which takes a string containing characters [0-9a-zA-Z] and increments it, pushing a 0 onto the front if required using the ‘carry-the-one’ method.