darkfriend / php7-array
There is no license information available for the latest version (1.0.5) of this package.
PHP7 array helper
1.0.5
2025-01-07 14:35 UTC
Requires
- php: >=7.0
README
composer require darkfriend/php7-array
ArrayHelper::in_array($needle, $haystack)- highload method for search value in arrayArrayHelper::isMulti($arr)- check array on multiple arrayArrayHelper::sortValuesToArray($sourceArray,$orderArray)- Sort values array to order arrayArrayHelper::sortKeysToArray($sourceArray,$orderArray)- Sort keys source array to order arrayArrayHelper::keysExists(array $arKeys, array $sourceArray)- found keys in source arrayArrayHelper::removeByKey(array $source, array $keys, bool $negative = false)- remove keys from source array. If set negative in true then remove all except for keysArrayHelper::removeByValue(array $source, array $values, bool $negative = false)- found values and remove item from source array. If set negative in true then remove all except for valuesArrayHelper::mergeValues(array $array1, array $array2, array $keys = [])- merge values $array2 in $array1 at null or empty values $array1