Created
October 13, 2016 11:53
-
-
Save rajvanshipradeep15/ea9d42648a5056678a835b7aa3ae7a52 to your computer and use it in GitHub Desktop.
To check if the array is in sequence.
This file contains hidden or 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
if ($array == array_intersect(range(min($array), max($array)), $array))) { | |
//in sequence | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment