Annotation of embedaddon/php/ext/standard/tests/array/array_keys_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test array_keys() function (basic)
3: --FILE--
4: <?php
5:
6: echo "*** Testing array_keys() on basic array operation ***\n";
7: $basic_arr = array("a" => 1, "b" => 2, 2.0 => 2.0, -23.45 => "asdasd",
8: array(1,2,3));
9: var_dump(array_keys($basic_arr));
10:
11: echo "Done\n";
12: ?>
13: --EXPECTF--
14: *** Testing array_keys() on basic array operation ***
15: array(5) {
16: [0]=>
17: string(1) "a"
18: [1]=>
19: string(1) "b"
20: [2]=>
21: int(2)
22: [3]=>
23: int(-23)
24: [4]=>
25: int(3)
26: }
27: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>