Annotation of embedaddon/php/ext/standard/tests/array/array_diff_key_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test array_diff_key() : basic functionality
3: --FILE--
4: <?php
5: /*
6: * proto array array_diff_key(array arr1, array arr2 [, array ...])
7: * Function is implemented in ext/standard/array.c
8: */
9: $array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4);
10: $array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8);
11: var_dump(array_diff_key($array1, $array2));
12: ?>
13: --EXPECT--
14: array(2) {
15: ["red"]=>
16: int(2)
17: ["purple"]=>
18: int(4)
19: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>