cable8mm / array-flatten
Flatten a multi-dimensional array in PHP.
Installs: 1 332
Dependents: 2
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
Requires (Dev)
- laravel/pint: ^1.0
- phpunit/phpunit: ^9.0|^10.0|^11.0
README
Flatten nested arrays.
We have provided the API Documentation on the web. For more information, please visit https://www.palgle.com/array-flatten/ ❤️
Installation
composer require cable8mm/array-flatten
Usage
use function Cable8mm\ArrayFlatten\array_flatten; array_flatten([1, [2, [3, [4, [5], 6], 7], 8], 9]); //=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
License
The Array Flatten is open-sourced software licensed under the MIT license.