= strtotime($sunset[0])) { $summary[0] = "$sunset[0]: $night[0]"; } else if ($timenow >= strtotime("12:00:00")) { $summary[0] = "12:00: $afternoon[0] $sunset[0]: $night[0]"; } else { $summary[0] = "00:00: $morning[0] 12:00: $afternoon[0] $sunset[0]: $night[0]"; } echo "
Forecasts | Graphs
\n\n"; echo "$valid[0]
\n"; // If a day summary is found, use a sensible time range here
echo "Max: $maxtemp[0], Min: $mintemp[0], Current: $curtemp, UV Index: $uv[0], Wind: $wind[0]
\n";
echo "Morning: $morning[0]
\n";
echo "Afternoon: $afternoon[0]
\n";
echo "Night: $night[0]
\n";
echo "Frost: $frost[0]
\n";
echo "Wind: $winddesc[0]
\n";
echo "
$valid[1]
\n";
echo "Max: $maxtemp[1], Min: $mintemp[1], UV Index: $uv[1], Wind: $wind[1]
\n";
echo "Morning: $morning[1]
\n";
echo "Afternoon: $afternoon[1]
\n";
echo "Night: $night[1]
\n";
echo "Frost: $frost[1]
\n";
echo "Wind: $winddesc[1]