stellarwp/arrays
最新稳定版本:1.3.1
Composer 安装命令:
composer require stellarwp/arrays
包简介
A library for array manipulation.
README 文档
README
A library for array manipulations.
Table of contents
- Installation
- Notes on examples
- Array utils
- accessible
- add
- add_prefixed_keys_to
- add_unprefixed_keys_to
- array_visit_recursive
- collapse
- destringify_keys
- dot
- escape_multidimensional_array
- except
- exists
- filter_to_flat_scalar_associative_array
- filter_prefixed
- first
- flatten
- forget
- get
- get_first_set
- get_in_any
- has
- insert_after_key
- insert_before_key
- intersect_key_recursive
- is_assoc
- is_list
- join
- last
- list_to_array
- map_or_discard
- merge_recursive
- merge_recursive_query_vars
- only
- parse_associative_array_alias
- prepend
- pull
- query
- random
- recursive_ksort
- remove_numeric_keys_recursive
- remove_string_keys_recursive
- set
- shape_filter
- shuffle
- sort_by_priority
- sort_recursive
- sort_recursive_desc
- stringify_keys
- strpos
- to_list
- undot
- usearch
- where
- where_not_null
- wrap
- Acknowledgements
Installation
It's recommended that you install Arrays as a project dependency via Composer:
composer require stellarwp/arrays
We actually recommend that this library gets included in your project using Strauss.
Luckily, adding Strauss to your
composer.jsonis only slightly more complicated than adding a typical dependency, so checkout our strauss docs.
Notes on examples
Since the recommendation is to use Strauss to prefix this library's namespaces, all examples will be using the Boomshakalaka namespace prefix.
Acknowledgements
A number of array methods were ported over from The Events Calendar and the Laravel Framework.
统计信息
- 总下载量: 796.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2023-08-25