PHP - How to generate unique ID

PHP has a function uniqid() for generating unique ID

It should be noted that uniqid() does not GUARANTEED unique strings, just strings that are highly probably unique – in the same way that MD5 doesn’t produce a guaranteed unique hash for a given string.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License