My Array looks like this:
array(7) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" [3]=> string(1) "4" [4]=> string(1) "5" [5]=> string(1) "7" [6]=> string(1) "7" }
How do you search the array and tell if there are duplicate "7" values in it? I want to do an if statement that says "if there are values repeated more than once then do this, else do that."
My array comes from a posted form ($_POST['parentnav']). I looked at the array search functions for php, but they seem to only find the first instance of the value in the array and report true or the place of the first instance in the array if found.. not the number of times the value is in the array... unless I am mistaken.