Another way to create a unique ID is to prepend the derived value with a string: : uniqid « Utility Function « PHP






Another way to create a unique ID is to prepend the derived value with a string:

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








Related examples in the same category

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