I want to see if an array has the same value multiple times,example:
$array=array('val1','val2','val3','val1');
As you can see,in the array above, there are 2 x val1 . To search if an array contains a value,i can do it with in_array:
$search=in_array('val1',$array);
And it will return true because val1 exists in array,but i need to return true if the value is found multiple times.