Skip to content

Instantly share code, notes, and snippets.

@pasinter
Created April 30, 2015 09:26
Show Gist options
  • Save pasinter/5b54809bda02642a956a to your computer and use it in GitHub Desktop.
Save pasinter/5b54809bda02642a956a to your computer and use it in GitHub Desktop.
Check if all array keys are integers
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