Better show than tell.
$first = array(
3=>"Banana",
4=>"Apple",
6=>"Lemon",
7=>"Pineapple",
8=>"Peach"
);
$second = array(4,7,8);
(Please note: the first one is associative array, it can have holes) The result should be
$result = array(
"Apple",
"Pineapple",
"Peach"
);
Any smart idea? Thank you