eznio/ar

Array shortcut utils

1.1.2 2017-06-09 22:59 UTC

This package is not auto-updated.

Last update: 2024-11-23 20:53:23 UTC


README

Small collection of (sometimes) useful array-related tools.

function get(array $array, string $path);
function each(array $array, callable $callback)
function filter(array $array, callable $callback)
function reject(array $array, callable $callback)
function map(array $array, callable $callback)
function reduce(array $array, callable $callback, mixed $initialValue)
function sort(array $array, string $elementPath)
function is1d(array $array)
function is2d(array $array)

Documentation: https://eznio.github.io/ar/