I want to get the data from array inside array as per the below code :
{"address":"0x64890972513558cb4e4b4a7f8af48d892fd097b7","ETH":{"**balance**":0,"totalIn":0,"totalOut":0},"countTxs":0,"tokens":[{"**tokenInfo**":{"**address**":"0xad640689e6950b7453729a4686edb3fdfd754616","**name**":"CIChain","decimals":"18","symbol":"CIC","totalSupply":"3000000000000000000000000000","owner":"0xecb64b92ffb5179b47c87d2f105d6eeebb132c68","lastUpdated":1527246490,"issuancesCount":0,"holdersCount":31528,"**price**":false}
i'm using this steps but I couldn't continue :
$address = "0x64890972513558cb4e4b4a7f8af48d892fd097b7"; //$_POST['address'];
$scan_url = 'https://api.ethplorer.io/getAddressInfo/'.$address.'?apiKey=freekey';
$scan_json = file_get_contents($scan_url);
$scan_array = json_decode($scan_json, true);
foreach($scan_array['tokens'] as $key => $eth) {
foreach($eth['tokenInfo'] as $key => $etth) {
echo $etth['name'];
}}
I want to retrieve the marked date by stars ** into echo in php so how can I get the nested data.
json_decode($json)->balance