<u>复制代码</u> 代码如下:<br>function getthemonth($date) <br>{ <br>$firstday = date('Y-m-01', strtotime($date)); <br>$lastday = date('Y-m-d', strtotime("$firstday +1 month -1 day")); <br>return array($firstday, $lastday); <br>} <br>