Skip to content

Instantly share code, notes, and snippets.

@assertchris
Last active August 29, 2015 14:08
Show Gist options
  • Save assertchris/9d49768f60a97d393b92 to your computer and use it in GitHub Desktop.
Save assertchris/9d49768f60a97d393b92 to your computer and use it in GitHub Desktop.
<?php
function array_difference(array $first, array $second) {
return array_merge(
array_diff($first, $second),
array_diff($second, $first)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment