Array helpers for PHP applications.
You can install the package via composer:
composer require sfneal/array-helpers
In order to autoload to the helper functions add the following path to the autoload.files section in your composer.json.
"autoload": {
"files": [
"vendor/sfneal/array-helpers/src/arrays.php"
]
},
Here's an example use of the arrayRemoveKeys method.
$array = ['red' => 36, 'black' => 88, 'white' => 72];
// Remove a key from the array
use Sfneal\Helpers\Arrays\ArrayHelpers;
(new ArrayHelpers($array))->arrayRemoveKeys('red');
>>> ['black' => 88, 'white' => 72,];
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email stephen.neal14@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the PHP Package Boilerplate.