时间戳

//开始时间为上个月月出
$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