UTILITY
flatten()
Flatten nested arrays to a chosen depth.
Signature
array flatten(array $array, int $depth = PHP_INT_MAX)
Example
flatten(['a', ['b', ['c']]], 1); // ['a', 'b', ['c']]Available from: 1.5.0