2017-02-10 18:12:59 -05:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @template T
|
|
|
|
*
|
|
|
|
* @param array<T, mixed> $arr
|
2017-03-24 10:13:20 -04:00
|
|
|
* @param mixed $search_value
|
|
|
|
* @param bool $strict
|
2017-02-10 18:12:59 -05:00
|
|
|
* @return array<int, T>
|
|
|
|
*/
|
2017-03-24 10:13:20 -04:00
|
|
|
function array_keys(array $arr, $search_value = null, bool $strict = false) {}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @template T
|
|
|
|
*
|
|
|
|
* @param array<mixed, T> $arr
|
|
|
|
* @return array<int, T>
|
|
|
|
*/
|
|
|
|
function array_values(array $arr) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @template T
|
|
|
|
*
|
|
|
|
* @param array<mixed, T> $arr
|
2017-03-30 11:04:47 -04:00
|
|
|
* @param int $sort_flags
|
2017-02-10 18:12:59 -05:00
|
|
|
* @return array<int, T>
|
|
|
|
*/
|
2017-03-30 11:04:47 -04:00
|
|
|
function array_unique(array $arr, int $sort_flags = 0) {}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @template T
|
|
|
|
*
|
|
|
|
* @param array<mixed, T> $arr
|
2017-02-11 00:34:07 -05:00
|
|
|
* @param int $offset
|
|
|
|
* @param int|null $length
|
|
|
|
* @param bool $preserve_keys
|
2017-02-10 18:12:59 -05:00
|
|
|
* @return array<int, T>
|
|
|
|
*/
|
2017-02-11 00:25:23 -05:00
|
|
|
function array_slice(array $arr, int $offset, int $length = null, bool $preserve_keys = false) {}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @param array $arr2
|
|
|
|
* @param array|null $arr3
|
|
|
|
* @param array|null $arr4
|
|
|
|
* @return array<TKey, TValue>
|
|
|
|
*/
|
|
|
|
function array_intersect(array $arr, array $arr2, array $arr3 = null, array $arr4 = null) {}
|
|
|
|
|
2018-01-25 01:04:26 -05:00
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @param array $arr2
|
|
|
|
* @param array|null $arr3
|
|
|
|
* @param array|null $arr4
|
|
|
|
* @return array<TKey, TValue>
|
|
|
|
*/
|
|
|
|
function array_intersect_key(array $arr, array $arr2, array $arr3 = null, array $arr4 = null) {}
|
|
|
|
|
2017-02-10 18:12:59 -05:00
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<mixed, TKey> $arr
|
|
|
|
* @param array<mixed, TValue> $arr2
|
|
|
|
* @return array<TKey, TValue>
|
|
|
|
*/
|
|
|
|
function array_combine(array $arr, array $arr2) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @param array $arr2
|
|
|
|
* @param array|null $arr3
|
|
|
|
* @param array|null $arr4
|
|
|
|
* @return array<TKey, TValue>
|
|
|
|
*/
|
|
|
|
function array_diff(array $arr, array $arr2, array $arr3 = null, array $arr4 = null) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @param array $arr2
|
|
|
|
* @param array|null $arr3
|
|
|
|
* @param array|null $arr4
|
|
|
|
* @return array<TKey, TValue>
|
|
|
|
*/
|
|
|
|
function array_diff_key(array $arr, array $arr2, array $arr3 = null, array $arr4 = null) {}
|
|
|
|
|
|
|
|
/**
|
2017-11-20 00:12:17 -05:00
|
|
|
* @template TKey
|
2017-02-10 18:12:59 -05:00
|
|
|
* @template TValue
|
|
|
|
*
|
2017-11-20 00:12:17 -05:00
|
|
|
* @param array<TKey, TValue> $arr
|
2018-01-28 17:07:09 -05:00
|
|
|
* @return null|TValue
|
2017-11-24 12:10:30 -05:00
|
|
|
* @psalm-ignore-nullable-return
|
2017-02-10 18:12:59 -05:00
|
|
|
*/
|
2017-11-19 21:36:09 -05:00
|
|
|
function array_shift(array &$arr) {}
|
2017-02-10 18:12:59 -05:00
|
|
|
|
|
|
|
/**
|
2017-11-20 00:12:17 -05:00
|
|
|
* @template TKey
|
2017-02-10 18:12:59 -05:00
|
|
|
* @template TValue
|
|
|
|
*
|
2017-11-20 00:12:17 -05:00
|
|
|
* @param array<TKey, TValue> $arr
|
2018-01-28 17:07:09 -05:00
|
|
|
* @return null|TValue
|
2017-11-24 12:10:30 -05:00
|
|
|
* @psalm-ignore-nullable-return
|
2017-02-10 18:12:59 -05:00
|
|
|
*/
|
2017-11-19 21:36:09 -05:00
|
|
|
function array_pop(array &$arr) {}
|
2017-03-13 16:50:25 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
2018-01-04 00:22:50 +01:00
|
|
|
* @param bool $preserve_keys
|
2017-03-13 16:50:25 -04:00
|
|
|
* @return array<TKey, TValue>
|
|
|
|
*/
|
2018-01-04 00:22:50 +01:00
|
|
|
function array_reverse(array $arr, bool $preserve_keys = false) {}
|
2017-11-11 01:06:39 -05:00
|
|
|
|
2018-01-23 14:20:37 -05:00
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
|
|
|
* @return TValue|false
|
2018-01-24 18:52:58 -05:00
|
|
|
* @psalm-ignore-falsable-return
|
2018-01-23 14:20:37 -05:00
|
|
|
*/
|
|
|
|
function current(array $arr) {}
|
|
|
|
|
2017-11-11 01:06:39 -05:00
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
2017-11-11 01:09:07 -05:00
|
|
|
* @return TValue|false
|
2018-01-24 18:52:58 -05:00
|
|
|
* @psalm-ignore-falsable-return
|
2017-11-11 01:06:39 -05:00
|
|
|
*/
|
|
|
|
function reset(array &$arr) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @template TKey
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @param array<TKey, TValue> $arr
|
2017-11-11 01:09:07 -05:00
|
|
|
* @return TValue|false
|
2018-01-24 18:52:58 -05:00
|
|
|
* @psalm-ignore-falsable-return
|
2017-11-11 01:06:39 -05:00
|
|
|
*/
|
|
|
|
function end(array &$arr) {}
|
2017-12-30 08:47:00 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @template T
|
|
|
|
*
|
|
|
|
* @param mixed $needle
|
|
|
|
* @param array<T, mixed> $haystack
|
|
|
|
* @param bool $strict
|
|
|
|
* @return T|false
|
|
|
|
*/
|
|
|
|
function array_search($needle, array $haystack, bool $strict = false) {}
|