'PHP: An Array of Months'
I’ll be honest, this isn’t very useful. The goal was to have an array of months in the least amount of code.
for($i = 1; $i <= 12; $i++) $months[$i] = date('F', strtotime("{$i}/01/2000"));
I’ll be honest, this isn’t very useful. The goal was to have an array of months in the least amount of code.
for($i = 1; $i <= 12; $i++) $months[$i] = date('F', strtotime("{$i}/01/2000"));