note 89454 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 22 Mar 2009 18:42:54 +0000 |
| Subject: | note 89454 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152285@lists.php.net to get a copy of this message | ||
Note Submitter: lulzury at yahoo dot nospam dot com
----
<?php
// Output all dates between two dates
$start_date = mktime( 0, 0, 0, 01, 01, 2008);
$end_date = mktime( 0, 0, 0, 03, 01, 2008);
do{
echo date('m-d-Y', $start_date) . "<br>";
$start_date = strtotime('+1 day', $start_date);
}
while($start_date <= $end_date);
?>