<?php $a = array(5 => 'test', 6 => 'test2', 7 => 'test3'); print_r(array_intersect_key($a, array_flip(array(7, 5))));
You have javascript disabled. You will not be able to edit any code.