D
D
Dmitriy2019-08-24 18:55:04
PHP
Dmitriy, 2019-08-24 18:55:04

How to display json data?

https://www.binance.com/api/v1/depth?limit=500&sym...
How to withdraw data from here?
Tried like this:

$page = file_get_contents('https://www.binance.com/api/v1/depth?limit=500&symbol=ZECBTC');
  $json = json_decode($page, true);
  echo $json['bids'][0];

Gives an error.
Notice: Array to string conversion in C:\xampp\htdocs\parsers\parser_1\index.php on line 17
Array

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2019-08-24
@Rsa97

json_decode()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question