note 23270 deleted from function.uniqid by philip

From: Date: Sun, 13 Oct 2002 02:50:36 +0000
Subject: note 23270 deleted from function.uniqid by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37993@lists.php.net to get a copy of this message
The power of your function is that it takes more than 1 milisecond so you have always an uniq id. You can replace that whole function with this: function uniq_id() { sleep(1); $id = microtime(); } and then you can use uniq_id() or md5(uniq_id())

« previous php.notes (#37993) next »