note 78792 deleted from function.microtime by tularis

From: Date: Sun, 22 Jun 2008 12:04:55 +0000
Subject: note 78792 deleted from function.microtime by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140662@lists.php.net to get a copy of this message
Note Submitter: helenadeus at gmail dot com ---- Sometimes it is useful to generate a sequential unique ID. This one uses microtime() to generate a unique string of numbers that varies every time and generates sequential numbers. <? function seqid() { list($usec, $sec) = explode(" ", microtime()); list($int, $dec) = explode(".", $usec); return $sec.$dec; } ?>

« previous php.notes (#140662) next »