note 57444 deleted from function.microtime by nlopess

From: Date: Tue, 04 Oct 2005 18:13:23 +0000
Subject: note 57444 deleted from function.microtime by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96377@lists.php.net to get a copy of this message
Note Submitter: php dot net at sharpdreams dot com ---- Contrary to what "cristianDOTzuddas-NOSPAM-com" states below, do NOT use his function to create unique IDs. Use a real unique function such as uniqid(). See the examples on that http://php.net/uniqid and the user comments for ensuring that you indeed do have a unique ID. (Why is his example bad? It will produce the same unique identifier if the code runs twice at the same time. Technically the statements could only execute simultaneously on a system with 2 or more processors but compounding rounding and floating point errors will make a collision more likely.)

« previous php.notes (#96377) next »