<?
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);
}
?>
转载于:https://www.cnblogs.com/hongchenok/archive/2011/10/31/2230889.html