'id1' => 0 => int 69997 1 => int 69997 2 => int 72047 3 => int 72784 4 => int 72699 5 => int 72699 6 => int 72699 'ilosc' => 0 => int 0 1 => int 0 2 => int 0 3 => int 0 4 => int 4 5 => int 4 6 => int 1
potrzebuje aby output wyglądał w ten sposób że dla tych samych id1 sumowała sie łączna z tablicy ilość
[php] 'id1' => 0 => int 69997 1 => int 72047 2 => int 72784 3 => int 72699 'ilosc' => 0 => int 0 1 => int 0 2 => int 0 3 => int 9
albo w ten sposób
69997 => 0 72047 => 0 72784 => 0 72699 => 9
zrobiłem
foreach($zzs as $zzk => $zzv) { } foreach($s as $t => $z) { foreach($z as $l => $p) { $xt[$l] += $p; } }