Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Remove duplicates from array of objects

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
Hello all, I have an array of objects and I need help removing duplicates from $test[]->PARid. Not sure how to do this.

Code:
$test = Array ( 
 [0] => stdClass Object ( [PARid] => 0 [nID] => 1 )
 [1] => stdClass Object ( [PARid] => 310 [nID] => 2 ) 
 [2] => stdClass Object ( [PARid] => 313 [nID] => 3 ) 
 [3] => stdClass Object ( [PARid] => 310 [nID] => 4 ) 
)

Thanks for the read and help,
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
Congratulations!
 
I will try that, thanks.
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
Congratulations!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top