months names list
$months = []; $dateTime = new DateTime(); $dateTime->setDate($dateTime->format(‘Y’), 1, 1); for ($_i = 1; $_i < 13; $_i++) { $monthName = $dateTime->format(‘F’); // March $dateTime->modify(‘+1 month’); $months[$_i] = $monthName; } var_dump($months);