merge multidimensional array with sum of values
问题 So i have an multidimensional array that looks like this: Array ( [0] => Array ( [GB] => 20827 [US] => 73 [ES] => 23 [AU] => 15 [DE] => 12 [MY] => 4 [QA] => 1 [VN] => 1 [SK] => 1 [FJ] => 1 [ME] => 1 [TR] => 1 [LV] => 1 ) [1] => Array ( [GB] => 15070 [US] => 3920 [IE] => 1711 [PH] => 1071 [MT] => 578 [AU] => 423 [HR] => 241 [ZA] => 210 [FR] => 139 ) ) I want to create a new array with all of the keys in each array of the multidimensional array along with the sum of values. This is the result i