承接 fetch/array-utils 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fetch/array-utils

最新稳定版本:0.1.1

Composer 安装命令:

composer require fetch/array-utils

包简介

Array utility methods, inspired by Ruby's array methods

关键字:

README 文档

README

This is a set of utility functions for array alteration and handling.

They all follow the same naming conventions as the default methods in the form of array_*.

Functions

array_delete(array &$array, $key)

Deletes entry from array and return its value.

NB: This method modifies the original variable.

array_get(array $array, $key)

Lookup entry in array by key and return its value, returns false if not found.

array_flatten(array $array)

Make multidimensional array flat.

array_pick(array $array, $keys[, $key[, $key]])

Return array with only the keys in $keys.

array_reject(array $array, $keys[, $key[, $key]])

Return array without the keys in $keys. This is the inverse of array_pick

Contributing

  1. Fork it ( https://github.com/fetch/php-array-utils/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-16