If I have an array that looks something like this:
Array
(
[0] => Array
(
[DATA] => Array
(
VALUE1 = 1
VALUE2 = 2
)
)
[1] => Array
(
[DATA] => Array
(
VALUE3 = 3
VALUE4 = 4
)
)
)
And I would like to include it in this:
Array
(
[0] => Array
(
[DATA] => Array
(
VALUE1 = 1
VALUE2 = 2
VALUE3 = 3
VALUE4 = 4
)
)
)
Basically I want to combine all the same keys that are on the same level. What would be the best way to do this? Can array_merge functions be useful?
Hope this makes some sense and thanks in advance for any help I can get.
source
share