2017-02-10 18:12:59 -05:00
|
|
|
<?php
|
|
|
|
/**
|
2019-01-05 00:15:53 -05:00
|
|
|
* @psalm-template T as array-key
|
2017-02-10 18:12:59 -05:00
|
|
|
*
|
|
|
|
* @param array<T, mixed> $arr
|
2017-03-24 10:13:20 -04:00
|
|
|
* @param mixed $search_value
|
|
|
|
* @param bool $strict
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2019-10-08 18:44:46 -04:00
|
|
|
* @return list<T>
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2017-02-10 18:12:59 -05:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function array_keys(array $arr, $search_value = null, bool $strict = false)
|
|
|
|
{
|
|
|
|
}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
|
|
|
/**
|
2019-01-05 00:15:53 -05:00
|
|
|
* @psalm-template TKey as array-key
|
2018-12-02 14:59:08 -05:00
|
|
|
* @psalm-template TValue
|
2017-02-10 18:12:59 -05:00
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @param array $arr2
|
2019-10-06 22:28:41 +03:00
|
|
|
* @param array ...$arr3
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2017-02-10 18:12:59 -05:00
|
|
|
* @return array<TKey, TValue>
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2017-02-10 18:12:59 -05:00
|
|
|
*/
|
2019-10-06 22:28:41 +03:00
|
|
|
function array_intersect(array $arr, array $arr2, array ...$arr3)
|
2019-07-05 16:24:00 -04:00
|
|
|
{
|
|
|
|
}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
2018-01-25 01:04:26 -05:00
|
|
|
/**
|
2019-01-05 00:15:53 -05:00
|
|
|
* @psalm-template TKey as array-key
|
2018-12-02 14:59:08 -05:00
|
|
|
* @psalm-template TValue
|
2018-01-25 01:04:26 -05:00
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @param array $arr2
|
2019-10-06 22:28:41 +03:00
|
|
|
* @param array ...$arr3
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2018-01-25 01:04:26 -05:00
|
|
|
* @return array<TKey, TValue>
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2018-01-25 01:04:26 -05:00
|
|
|
*/
|
2019-10-06 22:28:41 +03:00
|
|
|
function array_intersect_key(array $arr, array $arr2, array ...$arr3)
|
2019-07-05 16:24:00 -04:00
|
|
|
{
|
|
|
|
}
|
2018-01-25 01:04:26 -05:00
|
|
|
|
2017-02-10 18:12:59 -05:00
|
|
|
/**
|
2019-01-05 00:15:53 -05:00
|
|
|
* @psalm-template TKey as array-key
|
2018-12-02 14:59:08 -05:00
|
|
|
* @psalm-template TValue
|
2017-02-10 18:12:59 -05:00
|
|
|
*
|
|
|
|
* @param array<mixed, TKey> $arr
|
|
|
|
* @param array<mixed, TValue> $arr2
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2019-05-05 08:11:52 +02:00
|
|
|
* @return array<TKey, TValue>|false
|
2019-05-05 16:42:36 -04:00
|
|
|
* @psalm-ignore-falsable-return
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2017-02-10 18:12:59 -05:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function array_combine(array $arr, array $arr2)
|
|
|
|
{
|
|
|
|
}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
|
|
|
/**
|
2019-01-05 00:15:53 -05:00
|
|
|
* @psalm-template TKey as array-key
|
2018-12-02 14:59:08 -05:00
|
|
|
* @psalm-template TValue
|
2017-02-10 18:12:59 -05:00
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @param array $arr2
|
2019-10-06 22:28:41 +03:00
|
|
|
* @param array ...$arr3
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2017-02-10 18:12:59 -05:00
|
|
|
* @return array<TKey, TValue>
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2017-02-10 18:12:59 -05:00
|
|
|
*/
|
2019-10-06 22:28:41 +03:00
|
|
|
function array_diff(array $arr, array $arr2, array ...$arr3)
|
2019-07-05 16:24:00 -04:00
|
|
|
{
|
|
|
|
}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
|
|
|
/**
|
2019-01-05 00:15:53 -05:00
|
|
|
* @psalm-template TKey as array-key
|
2018-12-02 14:59:08 -05:00
|
|
|
* @psalm-template TValue
|
2017-02-10 18:12:59 -05:00
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @param array $arr2
|
2019-10-06 22:28:41 +03:00
|
|
|
* @param array ...$arr3
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2017-02-10 18:12:59 -05:00
|
|
|
* @return array<TKey, TValue>
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2017-02-10 18:12:59 -05:00
|
|
|
*/
|
2019-10-06 22:28:41 +03:00
|
|
|
function array_diff_key(array $arr, array $arr2, array ...$arr3)
|
2019-07-05 16:24:00 -04:00
|
|
|
{
|
|
|
|
}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
2018-02-21 18:59:31 -05:00
|
|
|
/**
|
2019-01-05 00:15:53 -05:00
|
|
|
* @psalm-template TKey as array-key
|
2018-12-02 14:59:08 -05:00
|
|
|
* @psalm-template TValue
|
2018-02-21 18:59:31 -05:00
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2018-02-21 18:59:31 -05:00
|
|
|
* @return array<TValue, TKey>
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2018-02-21 18:59:31 -05:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function array_flip(array $arr)
|
|
|
|
{
|
|
|
|
}
|
2018-02-21 18:59:31 -05:00
|
|
|
|
2018-04-05 00:21:14 -04:00
|
|
|
/**
|
2019-01-05 00:15:53 -05:00
|
|
|
* @psalm-template TKey as array-key
|
2018-04-05 00:21:14 -04:00
|
|
|
*
|
|
|
|
* @param array<TKey, mixed> $arr
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2018-07-22 19:15:40 -04:00
|
|
|
* @return TKey|null
|
|
|
|
* @psalm-ignore-nullable-return
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2018-04-05 00:21:14 -04:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function key($arr)
|
|
|
|
{
|
|
|
|
}
|
2018-04-05 00:21:14 -04:00
|
|
|
|
2019-11-27 18:59:12 +03:00
|
|
|
/**
|
|
|
|
* @psalm-template TKey as array-key
|
|
|
|
*
|
|
|
|
* @param array<TKey, mixed> $arr
|
|
|
|
*
|
|
|
|
* @return TKey|null
|
|
|
|
* @psalm-ignore-nullable-return
|
|
|
|
* @psalm-pure
|
|
|
|
*/
|
|
|
|
function array_key_first($arr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-template TKey as array-key
|
|
|
|
*
|
|
|
|
* @param array<TKey, mixed> $arr
|
|
|
|
*
|
|
|
|
* @return TKey|null
|
|
|
|
* @psalm-ignore-nullable-return
|
|
|
|
* @psalm-pure
|
|
|
|
*/
|
|
|
|
function array_key_last($arr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-12-30 08:47:00 -05:00
|
|
|
/**
|
2018-12-02 14:59:08 -05:00
|
|
|
* @psalm-template T
|
2017-12-30 08:47:00 -05:00
|
|
|
*
|
|
|
|
* @param mixed $needle
|
|
|
|
* @param array<T, mixed> $haystack
|
|
|
|
* @param bool $strict
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2017-12-30 08:47:00 -05:00
|
|
|
* @return T|false
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2017-12-30 08:47:00 -05:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function array_search($needle, array $haystack, bool $strict = false)
|
|
|
|
{
|
|
|
|
}
|
2019-01-19 18:11:39 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @template T
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2019-01-19 18:11:39 -05:00
|
|
|
* @param array<mixed,T> $arr
|
|
|
|
* @param callable(T,T):int $callback
|
|
|
|
* @param-out array<int,T> $arr
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2019-01-19 18:11:39 -05:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function usort(array &$arr, callable $callback): bool
|
|
|
|
{
|
|
|
|
}
|
2019-01-19 18:11:39 -05:00
|
|
|
|
2019-12-08 21:30:19 -05:00
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template T
|
|
|
|
*
|
|
|
|
* @param array<TKey,T> $arr
|
|
|
|
* @param callable(T,T):int $callback
|
|
|
|
* @param-out array<TKey,T> $arr
|
|
|
|
* @psalm-pure
|
|
|
|
*/
|
|
|
|
function uasort(array &$arr, callable $callback): bool
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-01-31 18:40:40 -05:00
|
|
|
/**
|
|
|
|
* @psalm-template T
|
|
|
|
*
|
|
|
|
* @param array<string, T> $arr
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2019-05-05 21:30:59 +02:00
|
|
|
* @return array<string, T>
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2019-01-31 18:40:40 -05:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function array_change_key_case(array $arr, int $case = CASE_LOWER)
|
|
|
|
{
|
|
|
|
}
|
2019-01-31 18:40:40 -05:00
|
|
|
|
2019-03-17 18:52:42 -04:00
|
|
|
/**
|
|
|
|
* @psalm-template TKey as array-key
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2019-03-17 18:52:42 -04:00
|
|
|
* @param TKey $key
|
2019-08-25 23:46:13 -04:00
|
|
|
* @param array<TKey, mixed> $search
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2019-03-17 18:52:42 -04:00
|
|
|
* @return bool
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2019-03-17 18:52:42 -04:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function array_key_exists($key, array $search) : bool
|
|
|
|
{
|
|
|
|
}
|
2019-03-28 17:43:14 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-template TKey as array-key
|
|
|
|
* @psalm-template TValue
|
|
|
|
*
|
2019-03-29 09:50:33 -04:00
|
|
|
* @param array<TKey, TValue> $arr
|
2019-03-28 17:43:14 -06:00
|
|
|
* @param array<TKey, TValue> ...$arr2
|
2019-07-05 16:24:00 -04:00
|
|
|
*
|
2019-03-28 17:43:14 -06:00
|
|
|
* @return array<TKey, TValue>
|
2019-09-08 11:32:04 -04:00
|
|
|
* @psalm-pure
|
2019-03-28 17:43:14 -06:00
|
|
|
*/
|
2019-07-05 16:24:00 -04:00
|
|
|
function array_merge_recursive(array $arr, array ...$arr2)
|
|
|
|
{
|
|
|
|
}
|
2019-12-27 16:30:42 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-template TKey as array-key
|
|
|
|
* @psalm-template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey> $keys
|
|
|
|
* @param TValue $value
|
|
|
|
*
|
|
|
|
* @return array<TKey, TValue>
|
|
|
|
* @psalm-pure
|
|
|
|
*/
|
|
|
|
function array_fill_keys(array $keys, $value): array
|
|
|
|
{
|
|
|
|
}
|