|
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. Parameters
Return ValuesReturns the unique identifier, as a string. Examples
Example #1 uniqid Example
<?php Changelog
NotesCaution
This function does not generate cryptographically secure tokens, in fact without being passed any additional parameters the return value is little different from microtime. If you need to generate cryptographically secure tokens use openssl_random_pseudo_bytes.
|