Latest weather using PHP

<?php 
  $xml = simplexml_load_file(‘http://www.google.com/ig/api?weather=ADDRESS’);
  $information = $xml->xpath("/xml_api_reply/weather/current_conditions/condition");
  echo $information[0]->attributes();
?>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*