class Arrays (View source)

Methods

static bool
iterable(mixed $obj)

Similar to is_iterable from PHP 7.1.0+

static bool
indexed(array $array)

Check if array is indexed, like ['foo', 'bar']. Similar to array_is_list

static 
ksort(array $array, int $flags = \SORT_REGULAR, bool $descending = false)

Ksort recursive

Details

static bool iterable(mixed $obj)

Similar to is_iterable from PHP 7.1.0+

Parameters

mixed $obj

Return Value

bool

static bool indexed(array $array)

Check if array is indexed, like ['foo', 'bar']. Similar to array_is_list

Parameters

array $array

Return Value

bool

static ksort(array $array, int $flags = \SORT_REGULAR, bool $descending = false)

Ksort recursive

Parameters

array $array
int $flags

Modify the sorting behavior. See details in https://www.php.net/manual/en/function.ksort.php#refsect1-function.ksort-parameters

bool $descending