update : 2015.11.03
php.shukuma.com검색:
|
uniqid(PHP 4, PHP 5) uniqid — Generate a unique ID 설명
string uniqid
([ string
$prefix = ""
[, bool $more_entropy = false
]] )Gets a prefixed unique identifier based on the current time in microseconds. Warning
This function does not create random nor unpredictable strings. This function must not be used for security purposes. Use a cryptographically secure random function/generator and cryptographically secure hash functions to create unpredictable secure IDs. 인수
반환값Returns the unique identifier, as a string. 예제
Example #1 uniqid() Example
<?php 주의Caution
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().
|