note 23107 added to function.md5

From: Date: Tue, 09 Jul 2002 17:49:39 +0000
Subject: note 23107 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-32805@lists.php.net to get a copy of this message
This code will always generate an unique string... function unique() { $temp = explode(" ",microtime()); $temp = $temp[0].$temp[1]; settype($temp,'int'); $temp+=time(); return md5($temp); } -- http://www.php.net/manual/en/function.md5.php http://master.php.net/manage/user-notes.php?action=edit+23107 http://master.php.net/manage/user-notes.php?action=delete+23107 http://master.php.net/manage/user-notes.php?action=reject+23107

« previous php.notes (#32805) next »