简单明了 :
上个月:
$start = date("Ym01", strtotime("last month")); $end = date("Ym01");
上上周
$start = date("Ymd", strtotime('monday -2 week')); $end = date("Ymd", strtotime('monday -1 week'));
上周
$start = date("Ymd", strtotime('monday last week')); $end = date("Ymd", strtotime('monday this week'));