Last active
August 29, 2015 14:24
-
-
Save adamplabarge/6e35713dcfe9d9bfa2c3 to your computer and use it in GitHub Desktop.
unique multi dimensionnel arrays
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
<?php | |
/** | |
* @param = multi-dimensionnal array with dups | |
* @return = unique multi-dimensional array | |
*/ | |
function make_arrays_unique( $array ) | |
{ | |
array_map("unserialize", array_unique(array_map("serialize", $arras))); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment