Mam skrypt:
$start = (new DateTime('2016-01-02'))->modify('first day of this month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { }
Wyświetla listę miesięcy od stycznia 2016 do września 2016.
Chciałbym żeby wyświetlał w 2 stronę, tj od września 2016 - do stycznia 2016.
Jak to zrobić?
Trifek