This question already has an answer here:
I want to merge an array with the current output as shown below to the expected output.
I was using a function array_reduce($currentArray, 'array_merge', array());
and it was working perfectly fine. But it doesnt seem to work now.
Current Output:
Array
(
[0] => Array
(
[0] => Array(...),
[1] => Array(...),
[2] => Array(...),
)
[1] => Array
(
[0] => Array(...),
[1] => Array(...),
[2] => Array(...), "
)
)
Expected Output:
Array
(
[0] => Array(...),
[1] => Array(...),
[2] => Array(...),
[3] => Array(...),
[4] => Array(...),
[5] => Array(...),
)
</div>