|
static | getMultiplicityOfValues ($allValues) |
|
static | callChunked (Closure $callback, $values, $chunkSize) |
|
static | multiSearch ($needles, $haystack) |
|
static | arrayKeysExists (array $array, array $keys) |
| Check if a list of keys exists in associative array. More...
|
|
Definition at line 12 of file ArrayOperation.php.
◆ arrayKeysExists()
static Fossology\Lib\Util\ArrayOperation::arrayKeysExists |
( |
array |
$array, |
|
|
array |
$keys |
|
) |
| |
|
static |
Check if a list of keys exists in associative array.
This function takes a list of keys which should appear in an associative array. The function flips the key array to make it as an associative array. It then uses the array_diff_key() to compare the two arrays.
- Parameters
-
array | $array | Associative array to check keys against |
array | $keys | Array of keys to check |
- Returns
- boolean True if all keys exists, false otherwise. @uses array_flip() @uses array_diff_key()
Definition at line 73 of file ArrayOperation.php.
◆ getMultiplicityOfValues()
static Fossology\Lib\Util\ArrayOperation::getMultiplicityOfValues |
( |
|
$allValues | ) |
|
|
static |
The documentation for this class was generated from the following file: