'PHP: An Array of Months'

1 min read
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"));
Related Posts
Need Expert Help with Apache Cassandra?
Get professional consulting for your distributed systems challenges. Performance optimization, architecture design, and troubleshooting.