//开始时间为上个月月出 $time = date('Y-m-01' , time()); $stime = strtotime('-1 month' , strtotime($time)); //结束时间为 当月月底 下月月初之前 $etime = strtotime("+1 month", strtotime($time)); 来源:https://www.cnblogs.com/simadongyang/p/11769851.html 标签 时间戳 strtotime