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
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): not available inside eval’d code.
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.