Created
October 19, 2016 09:59
-
-
Save marydn/1ed49aa6b0d8e4086656908e50c9a076 to your computer and use it in GitHub Desktop.
One-liner scripts collection
This file contains hidden or 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
// Remove duplicate values from a multi-dimensional array in PHP | |
$input = array_map('unserialize', array_unique(array_map('serialize', $input))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment