php 的时间日期操作

$statistic_day = date ( "Y-m-d", mktime ( 0, 0, 0, 4, $i, 2011 ) );

$next_day = date ( "Y-m-d", strtotime ( $statistic_day . " -1 day" ) ); //取前一天

两个日期想减

$days_count = (strtotime ( $end_date ) - strtotime ( $begin_date )) / 86400;

白发三千丈
原文地址:https://www.cnblogs.com/sanpoye/p/2659647.html