Created
March 3, 2017 06:56
-
-
Save calebklc/e138af3922b3719641df2a166f5e91ba to your computer and use it in GitHub Desktop.
Get xml data from url
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 | |
$url = 'Your url'; | |
$xml = simplexml_load_file($url); | |
// Example | |
var_dump($xml->stationList->station[0]->no); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment