- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
<?php
$url = file_get_contents('http://data.bter.com/api/1/ticker/doge_btc');
$array = json_decode($url,true);
foreach($array as $temp_array){
echo $temp_array['last'];
echo "<br>";
echo $temp_array['high'];
echo "<br>";
echo $temp_array['low'];
}
?>