How can I add all the columnar values by associative key? Note that key sets are dynamic.
Input array:
Arr
You can try this:
$c = array_map(function () { return array_sum(func_get_args()); },$a, $b);
and finally:
print_r($c);