$b = array (); foreach ($a as $key => $value) { if (isset($b[$key])) { $b[$key] += $value; } else { $b[$key] = $value; } } print_r($b);.
確定! 回上一頁