I\'m sure this is an extremely obvious question, and that there\'s a function that does exactly this, but I can\'t seem to find it. In PHP, I\'d like to know if my array has
As you specifically said you didn't want to use array_unique I'm going to ignore the other answers despite the fact they're probably better.
array_unique
Why don't you use array_count_values() and then check if the resulting array has any value greater than 1?