Skip to content

Instantly share code, notes, and snippets.

@peschee
Created May 19, 2011 14:01
Show Gist options
  • Save peschee/980813 to your computer and use it in GitHub Desktop.
Save peschee/980813 to your computer and use it in GitHub Desktop.
Remove array values
$arr = array_merge(array_diff($arr, array('values', 'to be', 'removed')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment