= 1; $i--) { array_push($last6F, date('F', strtotime("-$i month", $first))); } $last6YM = array(); for ($i = 6; $i >= 1; $i--) { array_push($last6YM, date('Y-m', strtotime("-$i month", $first))); } ?>