php array_sum 多维数组 我想得到每个数组字母的总和。请看一下我的代码
数组 ( / -----帮助--------- /
[0] => Array
(
[0] => Array
(
[a] => 1
[b] => 0
[c] => 0
[d] => 0
)
[1] => Array
(
[a] => 0
[b] => 1
[c] => 0
[d] => 0
)
)
[1] => Array
(
[0] => Array
(
[a] => 1
[b] => 0
[c] => 0
[d] => 0
)
[1] => Array
(
[a] => 0
[b] => 1
[c] => 0
[d] => 0
)
)
)每个数组的总和想要这样的结果请帮助
[0] => Array
(
[a] => 2
[b] => 0
[c] => 0
[d] => 0
)
[1] => Array
(
[a] => 0
[b] => 2
[c] => 0
[d] => 0
)
需要帮忙