https://github.com/cable8mm/array-flatten
Flatten a multi-dimensional array in PHP.
https://github.com/cable8mm/array-flatten
array array-flatten flatten php
Last synced: 3 months ago
JSON representation
Flatten a multi-dimensional array in PHP.
- Host: GitHub
- URL: https://github.com/cable8mm/array-flatten
- Owner: cable8mm
- License: mit
- Created: 2024-03-01T03:36:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-09T14:11:41.000Z (over 1 year ago)
- Last Synced: 2025-02-15T23:19:19.406Z (4 months ago)
- Topics: array, array-flatten, flatten, php
- Language: PHP
- Homepage: https://www.palgle.com/array-flatten/
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Array Flatten
[](https://github.com/cable8mm/array-flatten/actions/workflows/code-style.yml)
[](https://github.com/cable8mm/array-flatten/actions/workflows/run-tests.yml)




Flatten nested arrays.
We have provided the API Documentation on the web. For more information, please visit https://www.palgle.com/array-flatten/ ❤️
## Installation
```sh
composer require cable8mm/array-flatten
```## Usage
```php
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](http://opensource.org/licenses/MIT).