markwilson/array-is-indexed

This package is abandoned and no longer maintained. No replacement package was suggested.

Check if an array is sequentially indexed

1.0.0 2016-11-02 10:01 UTC

This package is not auto-updated.

Last update: 2021-01-23 09:21:10 UTC


README

Provides a global function to check if an array is sequentially indexed.

Example

<?php

array_is_indexed([1, 2, 3]); // true
array_is_indexed(['test' => 1, 2, 3]); // false