-4
嗨,請幫忙。如何總結這個數組陣列數組求和php
Array
(
[975] => Array
(
[0] => Array
(
[0] => 79.35
[1] => 14.28
)
[1] => Array
(
[0] => 79.35
[1] => 14.28
)
)
[758] => Array
(
[0] => Array
(
[0] => 16615.82
[1] => 2990.85
)
[1] => Array
(
[0] => 16615.82
[1] => 2990.85
)
[2] => Array
(
[0] => 16615.82
[1] => 2990.85
)
)
)
Resul樣子
Array
(
[975] => Array
(
[0] => Array
(
[0] => 158.7
[1] => 28.56
)
)
[758] => Array
(
[0] => Array
(
[0] => 49847.46
[1] => 8972.55
)
)
)
SO不是一個免費的編碼服務,你必須嘗試自己解決它。您只需編寫添加到總計的嵌套循環。除了數組之外, – Barmar
還可以共享您的代碼。將其添加到您的帖子。 – RST
所以我寫了幫助,Barmar先生。它不適用於comersial – user2787192