I have seen various posted about this question so am aware some answers to this may exist. however I am none the wiser after reading these.
I have an array that is
Just a way to do it:
$sum = 0; foreach($account_invoices as $num => $values) { $sum += $values[ 'vatAmount' ]; }