Problem in output value of a Object array nested inside a json

Hello everyone. please ive being battling with printing out a value from inside an array of a nested json. ive tried several ways its always returns index not define.
there is the code .

$valr= “”; ////////////////////////////source

 $valrGet =  file_get_contents($valr);
 $valrD =  json_decode($valrGet, true);
 $valrSell = ["ask"] ["price"];

Here is the structure of the json from the source :

my target is to output the value of (“price”) from “pair_name” BTC/ZAR

please help. thanks in advance

Sponsor our Newsletter | Privacy Policy | Terms of Service