定制 santaklouse/php-array-utils 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

santaklouse/php-array-utils

Composer 安装命令:

composer require santaklouse/php-array-utils

包简介

Mix of illuminate/Support/Arr and Kohana's array helpers including chaining.

README 文档

README

Mix of illuminate/Support/Arr and Kohana's array helpers including chaining.

How to use

  1. Installation
$ composer require santaklouse/php-array-utils:dev-main
  1. Usage
use ArrayUtils\Arr;

Arr::chain([['id' => 1], ['id' => 2], ['id' => 3])
  ->except(1)
  ->pluck('id')
  ->map(fn ($n) => pow($n, 2))
  ->value();


// === [1, 9]

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-28