<?php $months = array(); $num = date("n",strtotime('2016-05-17 16:41:51')); array_push($months, date("F", strtotime('2016-05-17 16:41:51'))); for($i = ($num + 1); $i <= 12; $i++){ $dateObj = DateTime::createFromFormat('!m', $i); array_push($months, $dateObj->format('F')); } print_r($months);
You have javascript disabled. You will not be able to edit any code.