I'm working with PHP 5.6 and I want to push values from an array in the end of another array so I tried the array_push
function but It pushed the whole array like this:
Array
(
[0] => Array
(
[0] => a
[1] => b
[2] => c
)
[1] => Array
(
[0] => d
[1] => e
[2] => f
)
)
What I'm looking for is this :
Array
(
[0] => Array
(
[0] => a
[1] => b
[2] => c
[3] => d
[4] => e
[5] => f
)
Is there any simpler way than looping over the array and adding values one by one :)