$x = Array('a', 'b', 'c', 'd');
$y = Array('a', 'b', 'c', 'a', 'd', 'a', 'c');
I need to compare the two arrays and find out how many times the values in $x occur in $y. For example, $x[0] occurs 3 times in $y, while $x[2] occurs twice.
How can i go about doing this?
TIA,
Richie.