[0] => Array
(
[2148] => 2
[2149] => 1
[2150] => 0
)
[1] => Array
(
[2148] => 4
[2119] => 1
[2130] => 0
)
So something like this would be awesome:
[array_complete] => Array
(
[2148] => array(2,4)
[2149] => 1
[2150] => 0
[2119] => 1
[2130] => 0
)
Looking into array push etc but not entirely sure.
Use
array_merge_recursiveafter turning your array keys into non numeric ones. If you use this as is, the conflicting keys will simply be renumbered.So overall:
Output:
Here is a demonstration: http://codepad.org/k8zvK0nL