I want to convert
$array_of_arrays = [[1,2,3],[4,5,6],[7,8],[9,10]];
Into
$array = [1,2,3,4,5,6,7,8,9,10];
I can use
$array = [];
foreach($array_of_arrays as $one_array):
$array = array_merge($array,$one_array);
endforeach;
But i have very long array of arrays, is there any function(method) exists for doing this without foreach loop