I have an associative array and want to print a value...in this case i want to create a foreach to print only [payout] value. Please find below array structure.
Array
(
[data] => Array
(
[0] => Array
(
[clicks] => 0
[conversions] => 0
[payout] => $0.00
[erpc] => $0.00
[cpl] => $0.00
)
)
[success] => 1
[totalNumRows] => 1)
Just loop through each sub-array like so:
If you have more nested arrays, simply
foreach
again for each layer.