Created
September 19, 2012 21:46
-
-
Save pedrokoblitz/3752504 to your computer and use it in GitHub Desktop.
php equivalent of python set(list)
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 conjunto($dados) | |
{ | |
return array_map("unserialize", array_unique(array_map("serialize", $dados))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment