I\'m trying to compare two arrays and get only the values that exist on both arrays but, unfortunately, I can\'t find the right array function to use...
I found th
Simple, use array_intersect() instead:
$result = array_intersect($array1, $array2);