ronappleton/php-dot
Composer 安装命令:
composer require ronappleton/php-dot
包简介
Set and get array values via dot notation.
README 文档
README
Php Dot allows you to add and retreive values from a php array via dot notation.
Installation
composer require ronappleton/php-dot "v1.0"
Usage
Declare use RonAppleton\Dot\Dot; at the top of your file.
Then:
$dot = new Dot;
$value = $dot->get($array, 'key.to.your.value', $defaultValue);
$success = $dot->set($array, 'key.to.append.value', $value);
Note: set accesses the array via reference and returns true on success.
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-24