The uniqid() function generates a unique ID based on the microtime (current time in To generate an extremely difficult to predict ID, use the md5() function..