quorum/array-functions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

quorum/array-functions

Composer 安装命令:

composer require quorum/array-functions

包简介

useful array functions

README 文档

README

Latest Stable Version License ci.yml

A collection of global array_* functions appending to the native PHP set.

Requirements

  • php: >=7.2.0

Installing

Install the latest version with:

composer require 'quorum/array-functions'

Array Functions

Function: \array_flatten

function array_flatten(array $array [, $allow_duplicates = false])
Parameters:
  • array $array - The Array to be Flattened
  • bool $allow_duplicates - Should the array allow duplicates
Returns:
  • array - The resulting array or NULL on failure

Given an array, find all the values recursively.

Function: \array_blend

function array_blend(array $arrays [, array $keys = null])
Parameters:
  • array $arrays - An array of arrays.
  • array | null $keys - The merged array.
Returns:
  • array - The resulting blended array

Given an array of arrays, merges the array's children together.

Function: \array_key_array

function array_key_array(array $arrays, $key)
Parameters:
  • array $arrays - An array of similarly keyed arrays
  • int | string $key - The desired key
Returns:
  • array - The flattened array

Given an array of similarly keyed arrays, returns an array of only the values of the key.

Function: \array_keys_array

function array_keys_array(array $arrays, $keys)
Parameters:
  • array $arrays - An array of similarly keyed arrays
  • array | int | string $keys - The key or array of keys to return
Returns:
  • array - The array of arrays with just the selected keys

Given an array of similarly keyed arrays, returns an array of only the selected keys.

Function: \array_key_refill

function array_key_refill(array $array, array $keys [, $fill = array()])
Parameters:
  • array $array - A Keyed array
  • array $keys - The keys that must exist
  • mixed $fill - The desired value to fill with
Returns:
  • array

Given a keyed array, fills any missing values.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固