note 104368 deleted from function.strtotime by crell
| From: | crell@php.net | Date: | Thu, 30 Jun 2022 20:58:47 +0000 |
| Subject: | note 104368 deleted from function.strtotime by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218817@lists.php.net to get a copy of this message | ||
Note Submitter: Annomoys
----
Strtotime() can be used to loop through date range.
as follows
<?php
$start = strtotime('2009-02-01');
$end = strtotime('2009-03-10');
$date = $start;
while($date < $end)
{
//write your code here
$date = strtotime("+1 day", $date);(counter)
}
?>