Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-09T14:11:41.000Z (10 months ago)
- Last Synced: 2024-10-29T03:49:46.562Z (about 2 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
[![code-style](https://github.com/cable8mm/array-flatten/actions/workflows/code-style.yml/badge.svg)](https://github.com/cable8mm/array-flatten/actions/workflows/code-style.yml)
[![run-tests](https://github.com/cable8mm/array-flatten/actions/workflows/run-tests.yml/badge.svg)](https://github.com/cable8mm/array-flatten/actions/workflows/run-tests.yml)
![Packagist Version](https://img.shields.io/packagist/v/cable8mm/array-flatten)
![Packagist Downloads](https://img.shields.io/packagist/dt/cable8mm/array-flatten)
![Packagist Dependency Version](https://img.shields.io/packagist/dependency-v/cable8mm/array-flatten/php)
![Packagist Stars](https://img.shields.io/packagist/stars/cable8mm/array-flatten)
![Packagist License](https://img.shields.io/packagist/l/cable8mm/array-flatten)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).