Last active
June 3, 2019 17:25
-
-
Save galiazzi/5227115b8ea33390f496bf31d65460c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function isSequencialArray($arr) | |
{ | |
return is_array($arr) && array_keys($arr) === range(0, count($arr) - 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment