xiio/array-manipulator

Convenient way to manipulate arrays.

v1.0.0-alpha 2016-01-01 07:51 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:13:42 UTC


README

Convenient way to manipulate arrays.

#Installation composer require xiio/array-manipulator dev-master

#Features * Factory method init(array $array) * apply($callback) * call($method_name, $arguments = [], $set_return_as_value = TRUE) * compact($recursive = TRUE) * concatWS(array $fields, $glue, $newFieldName, $leaveConcatFields = TRUE) * filter($field, $value) * flat($key, $value) * get() * groupBy($field) * isEmpty() * leaveFields(array $fields) * removeFields(array $fields) * reset() * setArray(array $array) * toArray($recursive = TRUE)