There are many questions about comparing 2 arrays having the same value or checking if a value in array exists, but I can't find this question anywhere:

How can i check if a certain Variable/Value exist twice or more in one array?

Eg:

```
$array_to_check = array( "this", "this" , "yes" , "no" , "maybe" , "yes" , "yes" );

$this_value = "this";

// how to check if $this_value or 'this' value exist more than twice in $array_to_check array:
// if it exist more than twice, echo yes it exist more than once!!

```

it would also be nice to see if there is a function that can be called where I can just insert the variable to check and the array to check as the parameters and return true if the variable value exist more than twice inside the array.

Eg:

```
$function check_if_more_than_two($the_variable_to_check, $array_to_check)

```

thank you so much. any help would be much appreciated :)