mirkoschmidt/arraydot
Composer 安装命令:
composer require mirkoschmidt/arraydot
包简介
Functions to handle multidimensional arrays and dots.
README 文档
README
Helper functions to deal with array dotting
Installation
composer require mirkoschmidt/arraydot --no-dev
Examples
$array = [ 'config' => 'group' => [ 'setting' => 'value', 'setting2' => 'value2', ], ], ]; $array = array_dot($array); // Elements can now be accessed using dot notation, like the example below. // Echos: 'value'; echo $array['config.group.setting']; // To return the array back to the original, the following // line can be used. $array = array_undot($array); // Echos 'value2' echo $array['config']['group']['setting2'];
统计信息
- 总下载量: 564
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-04-19