Creating a Date Range Array with PHP
I recently needed to come up with an array of dates between two given dates. I typically work in the MySQL-compatible ‘YYYY-MM-DD’ date format, so I wanted it to use dates like that. So I came up with the following function: