参考文档: https://stackoverflow.com/questions/10828688/last-six-months-list-in-php
$first = time();
$months = array();for ($i = 5; $i >= 0; $i--) s
array_push($months, date('Y-m', strtotime("-$i month", $first)));
}
print_r(months);
参考文档: https://stackoverflow.com/questions/10828688/last-six-months-list-in-php
$first = time();
$months = array();}
print_r(months);