- md5 sanitizes the ID and limits it to 32 characters.
- uniqid generates a random ID based on your server's time, etc.
- rand() is prefixed onto the ID - thus enhancing the ID's uniqueness.
- true tells uniqid() to make use of "more entropy" - again enhancing the ID's uniqueness.
Share →
