2017 © Pedro Peláez
 

library arrayfunctions

Functions to manipulate arrays

image

omissis/arrayfunctions

Functions to manipulate arrays

  • Monday, February 27, 2017
  • by omissis
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4,134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

ArrayFunctions

PHP Utilities to operate on arrays., (*1)

use Omissis\ArrayFunctions;
use function Omissis\ArrayFunctions\get as array_get;
use function Omissis\ArrayFunctions\set as array_set;

// Retrieve a value by its key, optionally returning a default if the value is not found.
// $key can be a string or an array representing the path to the key you are interested into.
ArrayFunctions\get($array, $key, $default);

// Alternatively, use the function alias
array_get($array, $key, $default);

// Set the value of a key, returning the previous value if it was set.
// $key can be a string or an array representing the path to the key you are interested into.
ArrayFunctions\set($array, $key, $value)

// Alternatively, use the function alias
array_set($array, $key, $value);

Installation

You can install ArrayFunctions with Composer:, (*2)

composer require omissis/arrayfunctions

Run composer install or composer update and you're ready to start., (*3)

The Versions

27/02 2017

dev-master

9999999-dev http://tenwarp.com

Functions to manipulate arrays

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

classes utilities

27/02 2017

1.0.0

1.0.0.0 http://tenwarp.com

Functions to manipulate arrays

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

classes utilities