If I use the PHP uniqid() function to generate IDs, and then I sort the IDs alphabetically in MySQL, will they be in the same order they were created?
It seems to me like they should be, since the IDs are just incrementing hexadecimal characters (at least I think they are), but does anyone know for certain?
The uniqid() function generates a unique ID based on the microtime (current time in microseconds).
So I would probably say yes.
Source: http://www.w3schools.com/php/func_misc_uniqid.asp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With