for($x=0; $x<12; $x++)
{
$month = mktime(0, 0, 0, date(\"m\")+$x, date(\"d\"), date(\"Y\"));
$key = date(\'m\', $month);
$monthname = date(\'F\', $mo
Given 2592000 is 30 days.
$month_time = 60*60*24*30; // 30 Days
for($x=0; x<12; $x++)
{
$time = time()+($month_time*$x);
$key = date('m', $time);
$month[$key] = date('F', $time);
}
In an answer on StackOverflow, can't find it right now, someone compared the performance of multiple methods of creating a time 1 week from now. Directly using numbers was much more efficient than any other method.