My input is
$array2 = array("b" => "green","red");
Array for search
$array1 = array("a" => "green", "green","red", "red", "red");
Output of array1:
Array
(
[0] => green
)
I need a function finds values in the first array which exist at least three times. These values will be unset from the second array.
Array ( )
notgreen
– Bora Jun 23 at 9:20