Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function removeDuplicates($array) {
- $result = array();
- $check = array();
- foreach ($array as $key => $value) {
- $test = print_r($value, TRUE);
- if (!isset($check[$test])) {
- $check[$test] = TRUE;
- $result[$key] = $value;
- }
- }
- return $result;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement