Created
April 30, 2015 09:26
-
-
Save pasinter/5b54809bda02642a956a to your computer and use it in GitHub Desktop.
Check if all array keys are integers
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
if (ctype_digit(implode('', array_keys($data)))) { | |
// | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment