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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to get the duplicates!

Status
Not open for further replies.

Haraldo

Programmer
Jun 9, 2003
41
GB
I know that array_unique will de-dupe an array but how do i get the duplicate values rather than a unique array. Is there a function that will return 1 copy of the duplicate values. e.g.

array1 = (1,2,3,3,3,4,5)

array_unique = (1,2,3,4,5)

what i want = (3)

I hope you understand that!

Thanks for any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top