Weather report for the week starting ';
echo(date('l, j F', $forecast->daily[0]->dt));
echo "";
// Put the weather into its own
for CSS styling
echo '
';
// Present each day's simplified forecast
for ($i=0; $i <= 7 ; $i++) {
echo ('');
echo ('' . date('D', $forecast->daily[$i]->dt) . '
');
echo (round($forecast->daily[$i]->temp->day) . 'c
');
echo ($forecast->daily[$i]->weather[0]->description);
echo '';
}
// Close out the #weatherforecast section
echo '
';
}