1--TEST--
2array_intersect_key(): Basic Test
3--FILE--
4<?php
5/*
6* Function is implemented in ext/standard/array.c
7*/
8$array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4);
9$array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8);
10var_dump(array_intersect_key($array1, $array2));
11?>
12--EXPECT--
13array(2) {
14  ["blue"]=>
15  int(1)
16  ["green"]=>
17  int(3)
18}
19