← All docs

array_is_list()

Checks whether an array is a list (sequential 0-based integer keys).

array_is_list()

function array_is_list(mixed $array): bool

Checks whether an array is a list (sequential 0-based integer keys).

Parameters:

  • $array (mixed)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how array_is_list is implemented in the compiler, see the internals page.