$time3 = strtotime(date("Y-m-01"));//当月 $time4 = strtotime(date("Y-m-01", strtotime("-1 month")));//上月