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);
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);
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);
|