markwilson/array-flatten

This package is abandoned and no longer maintained. No replacement package was suggested.

Adds array_flatten(array) global function

1.0.1 2018-02-02 12:31 UTC

This package is not auto-updated.

Last update: 2021-01-23 09:20:48 UTC


README

Adds array_flatten(array) global function.

Usage

<?php

$myArray = [[1, 2, 3], 4, [5], [6, 7], [[8, 9]]];

print_r(array_flatten($myArray)); // [1, 2, 3, 4, 5, 6, 7, 8, 9]