I have two arrays, the following:
$arr1 = array("Key1"=>1, "Key2"=>2, "Key3"=>3);
My second array is the following:
$arr2 = array("Key2", "Key3");
What I would like to get is the values where Key2 and Key3 matches. I would also like those values to be returned as an array so I end up with the following:
array(2,3)
Thanks for any help.
array_values()to reindex the array with numerical keys