今天0点表示,方法一:
$today = mktime(0, 0, 0, date('m', time()), date('d', time()), date('Y', time()));
方法二:
strtotime(date('Y-m-d', time());
方法三:
strtotime("today");
相关文章:
转载请注明出处:https://www.onexin.net/labs/php-0-clock-today-unixtime/
今天0点表示,方法一:
$today = mktime(0, 0, 0, date('m', time()), date('d', time()), date('Y', time()));
方法二:
strtotime(date('Y-m-d', time());
方法三:
strtotime("today");
转载请注明出处:https://www.onexin.net/labs/php-0-clock-today-unixtime/