Прогноз погоды при помощи Google Weather API на вашем сайте

$xml = simplexml_load_file('http://www.google.com/ig/api?weather=Almaty&oe=utf8&hl=ru');



<?php

$information = $xml->xpath("/xml_api_reply/weather/forecast_information");

$current = $xml->xpath("/xml_api_reply/weather/current_conditions");

$forecast_list = $xml->xpath("/xml_api_reply/weather/forecast_conditions");

?>



Алматы:






<?php foreach ($forecast_list as $forecast) : ?>