Name
uniqid
Synopsis
string uniqid([stringprefix
[, boolmore_entropy
]])
Returns a unique identifier, prefixed with
prefix
, based on the current time in
microseconds. If more_entropy
is specified
and is true
, additional random
characters are added to the end of the string. The resulting string is
either 13 characters (if more_entropy
is
unspecified or false
) or 23
characters (if more_entropy
is true
) long.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.