I need a string with max 6 length and mixed of number and alphabet. I checked:
How can I make short random unique keys, like YouTube video IDs, in PHP?
and
that was very useful but they make string with length 10 - 12. my question is that output of this code is always unique or not?
base_convert(microtime(false), 6, 36);
or
base_convert(uniqid('test',true), 6, 36);
Note: I convert from base 6 but the input is obviously not going to be base 6. I do it because if convert from 10 to 36 it generate 10-12 length.