/**
* 获取某个月的开始日期,结束日期
* @param string $month
* @param string $year
* @return array
*/
public static function getMonthDate($month = '',$year = '') {
$month = $month ? : date('m');
$year = $year ? : date('Y');
$begin_date = date('Y-m-01', strtotime($year.'-'.$month));
$end_date = date('Y-m-d', strtotime("$begin_date +1 month -1 day"));
$out_data['month'] = (int)$month;
$out_data['begin_date'] = $begin_date;
$out_data['end_date'] = $end_date;
$out_data['begin_simple'] = self::simpleDate($out_data['begin_date']);
$out_data['end_simple'] = self::simpleDate($out_data['end_date']);
return $out_data;
}