SyntaxFix
Write A Post
Hire A Developer
Questions
If you just want an array of month names from the beginning of the year to the end e.g. to populate a drop-down select, I would just use the following;
for ($i = 0; $i < 12; ++$i) { $months[$m] = $m = date("F", strtotime("January +$i months")); }