|
uniqidGenerate a unique ID Description
string uniqid
([ string
$prefix = ""
[, bool $more_entropy = false
]] )Gets a prefixed unique identifier based on the current time in microseconds. Caution
This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographically secure value, consider using random_int, random_bytes, or openssl_random_pseudo_bytes instead. Warning
This function does not guarantee uniqueness of return
value. Since most systems adjust system clock by NTP or like,
system time is changed constantly. Therefore, it is possible that
this function does not return unique ID for the
process/thread. Use Parameters
Return ValuesReturns timestamp based unique identifier as a string. Warning
This function tries to create unique identifier, but it does not guarantee 100% uniqueness of return value. Examples
Example #1 uniqid Example
<?php Notes
|