php gets the number of digits of the current timestamp
php gets the 10 digits of the current timestamp.
Example:
"; echo $dadte; ?>
Effect:
1572399129 2019-10-30 01:32:09
java, the timestamp of javascript is 13 digits, how toimplement php to obtain the 13-digit timestampHere, let’s look at the code
"; echo getUnixTimestamp();
Effect:
1572399322 1572399322925
For more PHP-related knowledge, please visitPHP Chinese website!
The above is the detailed content of How to get the current timestamp in php. For more information, please follow other related articles on the PHP Chinese website!