日期:2014-05-17 浏览次数:20410 次
$array = array( array( '1' => 1.2, 'second' => 1.2, ), array( '1' => 2.2, 'second' => 4.2, ), ); $totals = array(); foreach($array as $value) { foreach($value as $k => $v) { $totals[$k] += $v; } }