cable8mm/array-flatten

Flatten a multi-dimensional array in PHP.

v1.0.1 2024-03-09 14:10 UTC

This package is auto-updated.

Last update: 2024-11-21 12:08:40 UTC


README

code-style run-tests Packagist Version Packagist Downloads Packagist Dependency Version Packagist Stars Packagist License

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.