复制代码 代码如下:function getthemonth($date) { $firstday = date('y-m-01', strtotime($date)); $lastday = date('y-m-d', strtotime("$firstday +1 month -1 day")); return array($firstday, $lastday); } 【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!