PHP: Loop through dates (from date to date) with strtotime() function - Comment Page: 2

This is very easy way loop through dates (from date to date) with PHP strtotime() function. This example only echo dates, but of course this model can be used more complicated situations. [inttf_post_ad1] <?php // Set timezone date_default_timezone_set('UTC'); // Start date $date = '2009-12-06'; // End date $end_date = '2020-12-31'; while (strtotime($date) [inttf_post_ad2] Note: All different PHP strtotime() function syntaxes can be used. <?php // Set timezone date_default_timezone_set('UTC'); echo strtotime("now") . "\n"; echo strtotime("10 October 2010") . "\n"; echo strtotime("next Friday") . "\n"; echo...