PHP: An Array of Months
November 16, 2007 – 2:11 amI’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"));
Tech Thoughts, Mostly on LAMP - by Jon Haddad
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"));