php 获取月份的所有日期
//$year 年 //$month 月 public function monthDate($year,$month){ $monthDate = array(); $mtime = strtotime($year.'-'.$month); $t = date('t',$mtime); $month = date('m',$mtime); $st = $year.$month.'01'; $et = $year.$month.$t; while($st<=$et) { $monthDate[] = $st*1; $st++; } return $monthDate; }