Skip to content

Instantly share code, notes, and snippets.

@speedygfw
Created October 25, 2013 12:12
Show Gist options
  • Save speedygfw/7153700 to your computer and use it in GitHub Desktop.
Save speedygfw/7153700 to your computer and use it in GitHub Desktop.
Wetterdaten mit PHP und XPATH parsen
<?php
$xml = simplexml_load_file("http://weather.yahooapis.com/forecastrss?w=20067098&u=c");
$data = $xml->channel->item->xpath('yweather:condition');
$weatherToday = $data[0]->attributes();
var_dump($weatherToday);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment