Example:
$array = array(
'names' => array(
'john',
'peter',
'bill'
),
'products' => array(
'cheese',
array(
'natural' => 'milk',
'brie'
)
)
);
$flatten = Arrays::flatten($array);
Result:
Array
(
[0] => john
[1] => peter
[2] => bill
[3] => cheese
[4] => milk
[5] => brie
)