Pardon me if something wrong in this question. May be it’s a very dumb question but need to know exactly.
$t = date('s'); // s for second
echo mkTime($t); // 1335629750
Will the above code always return an unique number, I thought it’ll return me current timestamp (only second) and that is going to be unique for every users, am I wrong ?
Thanks!
Just using
time()will suffice to get the current timestampTimestamps are not unique per user and cannot be depended upon to be a unique value as multiple users can get the same timestamp if called concurrently