Hi Im new to php and I have an array that looks like the following code.
[ { "amount" : "204", "order" : "15", "customer": "12"}, { "amount" : "208", "order" : "17", "customer": "18"},{ "amount" : "300", "order" : "15", "customer": "19"} ]
How do I iterate and get all the amounts ? Tried using foreach and ended up with and invalid argument where I used .
$xabo = [ { "amount" : "204", "order" : "15", "customer": "12"}, { "amount" : "208", "order" : "17", "customer": "18"},{ "amount" : "300", "order" : "15", "customer": "19"} ]
foreach($xabo as $denge){
print_r $denge['amount'];
}