Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

perfectcube/php-array-utils

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP array utility functions. Build Status

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

About

PHP array utility functions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.