<?php $a = new stdClass; $a->id = 1; $b = $a; // mesmo objeto $c = new stdClass; $c->id = 2; $test = array($a, $b, $c); print_r(array_unique($test, SORT_REGULAR));
You have javascript disabled. You will not be able to edit any code.