Skip to content

Instantly share code, notes, and snippets.

@yavir-me
Created September 30, 2016 20:16
Show Gist options
  • Save yavir-me/83feb2d6ab9bba8e9c1a896ee5b68acd to your computer and use it in GitHub Desktop.
Save yavir-me/83feb2d6ab9bba8e9c1a896ee5b68acd to your computer and use it in GitHub Desktop.
in array insensitive execution
function inArrayI($needle, $haystack) {
return in_array(strtolower($needle), array_map('strtolower', $haystack));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment