I have the following array:
Array
(
[aFlashParties] => Array
(
[2015-07-07] => 20
[2015-07-08] => 48
[2015-07-09] => 42
[2015-07-10] => 94
[2015-07-11] => 0
[2015-07-12] => 0
[2015-07-13] => 6
[2015-07-14] => 0
),
[aRapidesParties] => Array
(
[2015-07-07] => 62
[2015-07-08] => 6
[2015-07-09] => 3
[2015-07-10] => 17
[2015-07-11] => 0
[2015-07-12] => 0
[2015-07-13] => 241
[2015-07-14] => 0
)
)
I'd like to turn it into an array like this:
Array
(
[0] => Array
(
[date] => 2015-07-07
[flash] => 20
[rapide] => 62
[total] => 82
),
[1] => Array
(
[date] => 2015-07-08
[flash] => 48
[rapide] => 6
[total] => 54
),
.....
)
So the idea is to create an array which has date, flash (number from [aFlashParties]), rapid - umber from [aRapidesParties]) and total (sum of flash and rapid). Can you help me please?