这是根据日期得来的 如果是时间戳 第一天的这个 strtotime就不要了:
$firstday = date('Y-m-01', strtotime($date));
$lastday = date('Y-m-d', strtotime("$firstday +1 month -1 day"));
这是根据日期得来的 如果是时间戳 第一天的这个 strtotime就不要了:
$firstday = date('Y-m-01', strtotime($date));
$lastday = date('Y-m-d', strtotime("$firstday +1 month -1 day"));