如何切割第一個值?從數組中的第二個值開始的foreach函數
foreach ($dataArray ['simpleforecast']['forecastday'] as $arr) {
$html .= "<td align='center' style='font-size:10px; font-weight:bold' >" . substr($arr['date']['weekday'], 0,3) . "<br />";
$html .= "<img style='border-radius:15px' src='http://icons-pe.wxug.com/i/c/a/" . $arr['icon'] . ".gif' border=0 /><br />";
$html .= "<font style='font-weight:bold' color='#555'>" . $arr['high'][$tempScale] . $tempUnit . " </font>";
$html .= "<font style='font-weight:normal' color='grey'>" . $arr['low'][$tempScale] . $tempUnit . "</font>";
$html .= "</td>";
}
感謝您的快速幫助 – 2012-02-13 11:51:19