$names=array(
array("name"=>"taylor","age"=>35),
array("name"=>"susan","age"=>30),
);
array_sum(array_column($names, 'age')); //65
$sumArray = array();
foreach ($myArray as $k=>$subArray) {
foreach ($subArray as $id=>$value) {
$sumArray[$id]+=$value;
}
}
print_r($sumArray);