faqts : Computers : Programming : Languages : PHP : Function Libraries

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 11 people (100%) answered Yes
Recently 6 of 6 people (100%) answered Yes

Entry

How can I generate a unique value in PHP?

Aug 12th, 1999 01:29
Nathan Wallace, John Coggeshall


uniqid() will work just fine.  It generates a unique key based on
microtime.

    http://www.php.net/manual/function.uniqid.php3