![](/gg/hf11.gif)
'2023-03-06','weather' => '晴','high' => '18℃','low' => '7℃','wind_direction' => '东北风','wind_speed' => '3-4级','humidity' => '60%'),array('date' => '2023-03-07','weather' => '多云','high' => '16℃','low' => '6℃','wind_direction' => '北风','wind_speed' => '2-3级','humidity' => '65%'),array('date' => '2023-03-08','weather' => '小雨','high' => '14℃','low' => '7℃','wind_direction' => '东北风','wind_speed' => '3-4级','humidity' => '80%'
),array('date' => '2023-03-09','weather' => '阴','high' => '12℃','low' => '6℃','wind_direction' => '北风','wind_speed' => '2-3级','humidity' => '75%'),array('date' => '2023-03-10','weather' => '晴','high' => '16℃','low' => '5℃','wind_direction' => '东北风','wind_speed' => '3-4级','humidity' => '60%'),array('date' => '2023-03-11','weather' => '多云','high' => '14℃','low' => '4℃','wind_direction' => '北风','wind_speed' => '2-3级','humidity' => '65%'),array('date' => '2023-03-12','weather' => '小雨','high' => '12℃','low' => '6℃','wind_direction' => '东北风','wind_speed' => '3-4级','humidity' => '80%'));// 遍历天气数据并填充表格foreach ($weatherData as $data) {echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";echo "";}?>
日期
|
天气状况
|
最高温度
|
最低温度
|
风向
|
风力
|
湿度
|
{$data['date']}
|
{$data['weather']}
|
{$data['high']}
|
{$data['low']}
|
{$data['wind_direction']}
|
{$data['wind_speed']}
|
{$data['humidity']}
|