note 31119 deleted from function.getdate by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 15 Sep 2004 16:38:42 +0000 |
| Subject: | note 31119 deleted from function.getdate by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76761@lists.php.net to get a copy of this message | ||
Note Submitter: hairy dot harry at softhome dot NOSPAM dot net
----
The following code can be used to get the date arrays for the week ahead. It maps the details of the
next seven days into the arrays $today, $tomorrow, $da2, etc... I used it when writing a php
calendar, with a "Week Ahead" view.
$today = getdate();
$tomorrow = getdate(time()+86400);
$da2 = getdate(time()+86400*2);
$da3 = getdate(time()+86400*3);
$da4 = getdate(time()+86400*4);
$da5 = getdate(time()+86400*5);
$da6 = getdate(time()+86400*6);