2017 © Pedro Peláez
 

library array-utils

Array utility methods, inspired by Ruby's array methods

image

fetch/array-utils

Array utility methods, inspired by Ruby's array methods

  • Saturday, November 14, 2015
  • by koenpunt
  • Repository
  • 2 Watchers
  • 1 Stars
  • 445 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

PHP array utility functions. Build Status

This is a set of utility functions for array alteration and handling., (*1)

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

Functions

array_delete(array &$array, $key)

Deletes entry from array and return its value., (*3)

NB: This method modifies the original variable., (*4)

array_get(array $array, $key)

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

array_flatten(array $array)

Make multidimensional array flat., (*6)

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

Return array with only the keys in $keys., (*7)

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

Return array without the keys in $keys. This is the inverse of array_pick, (*8)

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

The Versions

14/11 2015

dev-master

9999999-dev https://github.com/fetch/php-array-utils

Array utility methods, inspired by Ruby's array methods

  Sources   Download

MIT

The Development Requires

array utils

14/11 2015

0.1.1

0.1.1.0 https://github.com/fetch/php-array-utils

Array utility methods, inspired by Ruby's array methods

  Sources   Download

MIT

The Development Requires

array utils

16/03 2015

0.1.0

0.1.0.0 https://github.com/fetch/php-array-utils

Array utility methods, inspired by Ruby's array methods

  Sources   Download

MIT

The Development Requires

array utils