I am trying to read JSON formatted prices from: https://poloniex.com/public?command=returnTicker
what I need are two things: symbol names (like BTC_BBR, BTC_BCN, etc) and "highestBid" price for them. To read the ladder I use something like this:
$polo_price = file_get_contents('https://poloniex.com/public?command=returnTicker');
$polo = json_decode($polo_price, true);
$symbol[1] = $polo['BTC_BBR']['highestBid'];
But i need to use symbol name to read it. The symbols disapear and are being added from time to time, so I need to do this more automatically. How can I read symbol names into an array, so the result are:
symbol_name[0] = "BTC_BBR";
symbol_name[1] = "BTC_BCN";
and so on.