dq5studios/entity_column
最新稳定版本:v1.0.1
Composer 安装命令:
composer require dq5studios/entity_column
包简介
A drop-in replacement for array_column() that supports objects with getters.
README 文档
README
entity_column
A drop-in replacement for array_column() that supports objects with getters.
Usage
use function DQ5Studios\EntityColumn\entity_column; function entity_column(array $array, int|string $column_key, int|string|null $index_key = null): array
Parameters
array
A multi-dimensional array or an array of objects from which to pull a column of values from.
column_key
The column of values to return.
index_key
The column to use as the index/keys for the returned array.
Return Values
Returns an array of values representing a single column from the input array.
统计信息
- 总下载量: 506
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-05-25