1, "b"=>2, "c"=>3, "d"=>4, "e"=>5); // Filtering numbers array using key and value $result = array_filter($numbers, function($value, $key){ return $key > "b" && !($value & 1); }, ARRAY_FILTER_USE_BOTH); print_r($result); ?>