russpos/dotarray
Composer 安装命令:
composer require russpos/dotarray
包简介
Utility for traversing arrays using a dot notation
README 文档
README
Simple utility for extracting keys from an array using a dot notation.
<?php $value = DotArray\Extract::keyFromArray('a.b.c', ['a' => ['b'=> ['c' => 'hello world']]]); echo $value; // 'hello world';
The API is minimal. If any part of the nested keys are missing or can't be traversed, the function
will return null with no errors.
Installing.
This package is setup as a composer package for easy inclusion in your projects.
Contributing.
To contributor, please add additional tests. To run the test suite, just install all the dependencies using
composer and then run:
$ composer run-script test
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-03-12