note 49536 added to function.strtotime
| From: | mazinmk at yahoo-inc dot com | Date: | Tue, 01 Feb 2005 00:22:07 +0000 |
| Subject: | note 49536 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84293@lists.php.net to get a copy of this message | ||
Want to add days to specific date and want to list out all the days.
<?php
$days = 6; // No. Of days to add
$from_date = date("Y-m-d"); // any date.
for ($i=0; $i<=$days; $i++)
{
print date("Y-m-d", strtotime("$from_date + $i days"));
echo "<br>";
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49536
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49536&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49536&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49536&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49536&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49536&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49536&report=yes
Search -- http://master.php.net/manage/user-notes.php