ashvedov/array-flatten
最新稳定版本:v1.0.4
Composer 安装命令:
composer require ashvedov/array-flatten
包简介
array flatten
README 文档
README
Descriptions
The package allows you to convert a simple numbered array of any nesting to a simple one-dimensional (without nesting) array
Getting started
Requirements
- PHP 8.1
- Composer 2+
Installation
composer require ashvedov/array-flatten
Usage
Anywhere in your code, just include the class ArrFlatten in the use section and you're good to go.
Example
use Ashvedov\ArrayFlatten\ArrFlatten;
$test = new ArrFlatten(array: [[1, 2, [3, 5], [[4, 3], 4], 10], [1, 2, 3, 5, 4, 3, 4, 10]]);
var_dump($test->flattenArray());
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-08-14