我已经看到关于这个问题的各种帖子,所以我知道可能存在一些答案。然而,在阅读了这些之后,我并没有变得更聪明。
我有一个如下所示的数组。
[0] => Array
    (
        [id] => 95659865986
        [invoiceNumber] => 6374324
        [invoiceTitle] => Monthly
        [invoiceStatus] => Paid
        [accountId] => 6235218753
        [totalExVat] => 158.95
        [dateCreated] => 1 Apr 2012
        [vatAmount] => 20.00
    )
我想做的就是vatAmount对这个数组的值进行数组求和。
由于以下似乎没有做太多。
(array_sum($account_invoices['vatAmount'])