1--TEST-- 2Test array_diff_key() : basic functionality 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_diff_key($array1, $array2)); 11?> 12--EXPECT-- 13array(2) { 14 ["red"]=> 15 int(2) 16 ["purple"]=> 17 int(4) 18} 19