0

I have two associated arrays containing keys pointing to different values. I want to combine the key's values of the different arrays by summing them (they're all integers). For example I want to turn these two arrays:

array_1(100=>3, 50=>10, 60=>30) array_2(100=>10, 60=>50)

the result would be as following:

array_combined(100=>13, 50=>10, 60=>80)

Hope you guys can help me along.

Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
Amnestic
  • 650
  • 2
  • 8
  • 23

0 Answers0