'PHP: An Array of Months'

RustyRazorblade Consulting RustyRazorblade Consulting
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"));

RustyRazorblade Consulting

RustyRazorblade Consulting

Apache Cassandra Consultant and Distributed Systems Expert

Related Posts

Need Expert Help with Apache Cassandra?

Get professional consulting for your distributed systems challenges. Performance optimization, architecture design, and troubleshooting.