我正在为班级做一个项目,我需要在城市国家国家和 zip 变量之间简单地放置一个空格。请帮忙!谢谢!
代码如下所示:
echo "<p>";
echo $weather['current_observation']['display_location']['city'];
echo $weather['current_observation']['display_location']['state'];
echo $weather['current_observation']['display_location']['country'];
echo $weather['current_observation']['display_location']['zip'];
echo "</p><p>";
echo $weather['current_observation']['observation_time_rfc822'];
echo "</p><p>";
echo $weather['current_observation']['weather'];
echo "</p><p>";
echo $weather['current_observation']['temperature_string'];
echo "</p><p>";
echo $weather['current_observation']['wind_string'];
echo "</p>";