PHP 获取当月的第一天和最后一天
// 第一天
$start = date('Y-m-01', time()); echo $start;
// 最后一天 $end = date('Y-m-d',strtotime("$start +1 months-1 day")); echo $end;
// 第一天
$start = date('Y-m-01', time()); echo $start;
// 最后一天 $end = date('Y-m-d',strtotime("$start +1 months-1 day")); echo $end;