isNested
Definition
Arr::isNested(array $array): bool
Description
Check if any element of an array is also an array
Examples
Arr::isNested([]) -> false
Arr::isNested([1, 2, 3]) -> false
Arr::isNested([1, 2 => [], 3]) -> true
Arr::isNested([1, 2 => [[[]]], 3 => []]) -> true
Last updated
Was this helpful?