PHP Dodaj wartości tablicy z tymi samymi klawiszami
$sumArray = array();
foreach ($myArray as $k=>$subArray) {
foreach ($subArray as $id=>$value) {
$sumArray[$id]+=$value;
}
}
print_r($sumArray);
Half Unicorn, Half Potato