Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails
and this is the second array:
Array ( [Jan 01, 2013] => Array ( [COM] => 100 [RES] => 200 ) [Oct 28, 2014] => Array ( [COM] => 300 [RES] => 400 ) )
I need to sum the values from these two arrays so that it produces this result:
Array ( [Jan 01, 2013] => Array ( [COM] => 10 [RES] => 20 ) [Oct 28, 2014] => Array ( [COM] => 30 [RES] => 40 ) )
I found this tutorial to sum values of associative arrays, but it does not seem to work with my multi-dimensional arrays. Any suggestions how to accomplish this? Thank you.
Array ( [Jan 01, 2013] => Array ( [COM] => 110 [RES] => 220 ) [Oct 28, 2014] => Array ( [COM] => 330 [RES] => 440 ) )
|Is it possible to update a file in AWS Elastic Beanstalk without deploying a new version?||3||61|
|responsive divs setup - what am I doing wrong||2||33|
|Why does my array not "dump?"||5||19|
|Can't connect to my database||2||14|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
19 Experts available now in Live!