1
How to take the value of low of the following api
:
[{"idreg":"257052","code":"USD","codein":"BRL","name":"D\u00f3lar Comercial",
"high":"3.4026","pctChange":"1.143","open":"0","bid":"3.3703","ask":"3.3713",
"timestamp":"1481828340000","low":"3.367","notFresh":"0","varBid":"0.0381",
"create_date":"2016-12-15 17:30:02"}]
I don’t quite understand what the rules of the road are json
but I tried it this way:
<?php
$json_file = file_get_contents("https://economia.awesomeapi.com.br/json/USD-BRL/1");
$dados = json_decode($json_file);
echo $dados->low;
?>
What I’m doing wrong?
great explanation :D, vlw
– picossi
(: hehe obagdo @picossi
– Miguel