Last active
August 15, 2016 19:45
-
-
Save xwero/d3fabe18744ca122b6e1d6d71c942546 to your computer and use it in GitHub Desktop.
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
function array_filter_by_excluded_keys(array $haysack, array $excluded) { | |
return array_filter($haysack, function($key) use ($excluded) { | |
return !in_array($key, $excluded); | |
}, ARRAY_FILTER_USE_KEY); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment