Forum Moderators: coopster
//start with an empty array, which will hold all of the next 7 days strings
$my_days = array();//get the today date
$my_days[] = date("d/M/Y");//get the next 6 days
for($i = 1; $i < 7; $i++){
//format each one of the next 6 days
$my_days[] = date("d/M/Y", strtotime("+{$i} day"));
}//show the dates
echo implode(" ¦ ", $my_days);