日期:2014-05-17 浏览次数:20373 次
<? $stand = "2013-01-"; for ($i = 1; $i <= 31; $i ++) { $time = strtotime($stand . $i); $date[] = date("Ymd", $time); } print_r($date); ?>
//日期定义 $day = date("Ymd", strtotime("-1 day")); echo $day."\n"; $day = date("Ymd", strtotime("+1 day")); echo $day."\n";