I am just finishing a search class and I need to be able to remove duplicate objects from an array. Unique doesn't work for this and I have almost finished a sort function:
for ($i = 0; isset($this->resultArray[$i]); $i++) {
$c = 0;
for($c = 0; $i > $c; $c++) {
if ($this->resultArray[$i]->ID == $this->resultArray[$c]->ID) {
Now how do I complete this so that the duplicate element will be removed from the array?
Regards.
Steve.