Hi I have the following mult-dimensional array:
I would like to group by the CustID and sum zero_days, thirty_60 ..etc
I can sum the totals as follows:
$zero_30 = array_sum(array_column($aging,'zero_30'));
$thirty_60 = array_sum(array_column($aging,'thirty_60'));
$sixty_90 = $array_sum(array_column($aging,'sixty_90'));
$ninety_plus = array_sum(array_column($aging,'ninety_plus'));
However I am not sure how I could produce an array where totals are summed by each CustID ?