How do I loop through the array to get the "converted_amount" values?
stdClass Object
(
[rows] => Array
(
[0] => stdClass Object
(
[components] => Array
(
[0] => stdClass Object
(
[amount] => 5033298.132349431
[count] => 1337
[rate] => 3.1398800
[converted_amount] => 1603021.9952863243
)
[1] => stdClass Object
(
[amount] => 458673.0026585825
[count] => 325
[rate] => 0.45260800
[converted_amount] => 1013400.4157520011
)
I have tried a foreach like this but it doesn't work. I think there should be something in-between components and converted_amount - maybe another foreach? I'm not sure.
foreach ($getexvolume as $vol) {
echo $vol['rows'][0]['components']['converted_amount'];}
$vol->rows[0]->components[0]->converted_amountas far as I can tell.