Download the PHP package dskripchenko/php-array-helper without Composer
On this page you can find all versions of the php package dskripchenko/php-array-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dskripchenko/php-array-helper
More information about dskripchenko/php-array-helper
Files in dskripchenko/php-array-helper
Package php-array-helper
Short Description Additional array functions
License MIT
Informations about the package php-array-helper
php-array-helper
A tiny set of pure-PHP array helpers, autoloaded as global functions.
π English Β· δΈζ
Requirements
PHP 8.2 β 8.5.
Install
The functions are registered via Composer's files autoloading β no setup needed.
Functions
array_merge_deep(array ...$arrays): array
Recursively merges arrays. String keys are merged deeply (nested arrays are combined); integer keys are appended rather than overwritten. Variadic.
array_sort_deep(array $array, int $flags = SORT_REGULAR): array
Recursively ksort()s the array and every nested array.
array_is_associative(array $array): bool
True when the array has any non-sequential (string / gapped) keys.
array_get_signature(array $array, ?string $secret = null, ?string $salt = null, ?callable $hashing = null, int $flags = JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK): string
A stable, order-independent signature of an array: it deep-sorts the array,
JSON-encodes it, wraps it in secret + payload + salt and hashes the result
(md5 by default, or your own $hashing callable).
License
MIT Β© Denis Skripchenko
All versions of php-array-helper with dependencies
ext-json Version *