php - Shortest unique ID based on date and time? -


what shortest unique id can created php without using database? guess it's based on date+time (24 hour time format?) how short can be?

for php inbuilt solution uniqid (http://php.net/manual/en/function.uniqid.php).

$id = uniqid('',true); 

alternatively create uuid. example see: php function generate v4 uuid


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -