I have two arrays like the following:
$array1 = array("red", "red", "blue", "green", "blue");
$array2 = array("blue", "blue", "red", "red");
I want to count all of the matches between the two arrays; however, (counting) array_intersect does not work because each array has duplicates (which I...