Created
October 19, 2014 19:46
-
-
Save pariz/5e952148ec6705cdc954 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = simplexml_load_file('http://www.yr.no/sted/Sverige/Uppsala/Storvreta/forecast.xml'); | |
$xpath = $xml->xpath('/weatherdata/forecast/tabular/time[1]/temperature/@value'); | |
var_dump((string)$xpath[0]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment