Which PHP function can return the current date/time?
转载于:https://stackoverflow.com/questions/470617/how-to-get-the-current-date-and-time-in-php
Which PHP function can return the current date/time?
转载于:https://stackoverflow.com/questions/470617/how-to-get-the-current-date-and-time-in-php
You can either use the $_SERVER['REQUEST_TIME']
variable (available since PHP 5.1.0) or the time()
function to get the current Unix timestamp.