How can I add all the columnar values by associative key? Note that key sets are dynamic.
Input array:
Arr
$resultat = array(); foreach ($myArray as $myArray_key => $myArray_data) { foreach ($myArray_data as $key => $data) { $resultat[$key] += $data; } } print_r($resultat);