function uniqid() generates a 13-character unique identification number based on the current time. : uniqid « Utility Function « PHP






function uniqid() generates a 13-character unique identification number based on the current time.

 
Its syntax is: int uniqid (string prefix [, boolean lcg])

<?
    $uniq_id = uniqid("");
    print $uniq_id;
?>
  
  








Related examples in the same category

1.Another way to create a unique ID is to prepend the derived value with a string:
2.Random unique id