Created
February 10, 2017 03:05
-
-
Save nsssim/905dfdc06eb7fde976061935f0c509b7 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 | |
//round 1 | |
$json_file = file_get_contents('http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json'); | |
$data = json_decode($json_file); | |
$i=0; | |
var_dump($json_file); | |
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~<br/>"; | |
//round 2 | |
$xml_file = simplexml_load_file('http://aiweb.cs.washington.edu/research/projects/xmltk/xmldata/data/mondial/mondial-3.0.xml'); | |
$i=1; | |
var_dump($xml_file); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment