php获取月头月末
程序员文章站
2022-05-20 21:48:03
...
$start_time = $year . '-' . $month .'-01 00:00:00';
$end_time = date('Y-m-d', strtotime($start_time. ' +1 month -1 day')).' 23:59:59';