Skip to content

Instantly share code, notes, and snippets.

@cthos
Created February 26, 2015 17:35
Show Gist options
  • Save cthos/bb1571b850d178e0c14b to your computer and use it in GitHub Desktop.
Save cthos/bb1571b850d178e0c14b to your computer and use it in GitHub Desktop.
foreach ($arr as $key => $val) {
if (!is_numeric($key)) {
continue;
}
// do stuff here.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment