Skip to content

Instantly share code, notes, and snippets.

@atbradley
Created July 26, 2013 18:12
Show Gist options
  • Save atbradley/6090990 to your computer and use it in GitHub Desktop.
Save atbradley/6090990 to your computer and use it in GitHub Desktop.
Run array_unique() on an array containing arrays (array_unique() expects strings).
$outp = array_map('serialize', $outp);
$outp = array_unique($outp);
$outp = array_map('unserialize', $outp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment