Quantcast
Channel: Parse Data from JSON URL - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by dudeman for Parse Data from JSON URL

$
0
0

change:

$data = json_decode($jsondata, true);

to

$data = json_decode($json, true);

Also, json_decode returns an array so use:

echo $data['pc']['peak24'];

to access the data.


Viewing all articles
Browse latest Browse all 4

Trending Articles