Hi,
I am just finishing up my cell.php script that includes the forecast on the page here"
http://www.hrmweather.com/cell.phpAnd as can be seen, the ec forecast is returning 7 icons but the page only really accommodates 5.
This is the statement in the middle of the code that needs to be changed and I need a php guru to keep my sanity I think.
if ($fcstorg == 'EC') {
foreach ($forecasticon as $i => $temp) {
$forecasticons[$i] = $forecasttitles[$i] . "<br />\n" .
$forecasticon[$i] . "\n" .
$forecasttext[$i] . "\n";
}
$forecasttext = $forecastdetail;
foreach ($forecastdays as $i => $temp) {
$t = explode('<br />',$forecastdays[$i]);
$forecasttitles[$i] = $t[0];
}
Is there a way to modify the "foreach" statements to limit it to the first 5 items in the arrays/ or loops?
Many thanks for the assistance,
Jim