markwilson/array-is-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

提供全局函数以检查数组是否按顺序索引。

示例

<?php

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