Skip to content

Instantly share code, notes, and snippets.

@mikehins
Last active March 4, 2019 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikehins/e8d7c87307f345afd96a22f33503545d to your computer and use it in GitHub Desktop.
Save mikehins/e8d7c87307f345afd96a22f33503545d to your computer and use it in GitHub Desktop.
Make a multidimensionnal array unique by key
$unique = array_intersect_key($array, array_unique(array_column($array, 'email')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment