converting a number base 10 to base 62 (a-zA-Z0-9)
OLD: A quick and dirty solution can be to use a function like this: function toChars($number) { $res = base_convert($number, 10,26); $res = strtr($res,’0123456789′,’qrstuvxwyz’); return $res; } The base convert translate your number to a base where the digits are 0-9a-p then you get rid of the remaining digits with a quick char substitution. As … Read more