标签:
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); }
标签:
原文地址:http://www.cnblogs.com/mengzzj/p/4707425.html