ScrewLooseSalad Posted July 26, 2013 Share Posted July 26, 2013 (edited) I have an array containing the users input of 14 strings, I want to search this array to find duplicates, but I'm not sure how to go about it efficiently... there isn't already a function that does this by any chance is there? Thanks Edited July 26, 2013 by ScrewLooseSalad Quote Link to comment https://forums.phpfreaks.com/topic/280531-wanted-an-efficient-method-of-searching-for-duplicates-in-an-array-of-strings/ Share on other sites More sharing options...
Barand Posted July 26, 2013 Share Posted July 26, 2013 array_count_values array_unique Quote Link to comment https://forums.phpfreaks.com/topic/280531-wanted-an-efficient-method-of-searching-for-duplicates-in-an-array-of-strings/#findComment-1442248 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.