123456789101112131415161718192021222324252627 |
- --TEST--
- Test array_keys() function (basic)
- --FILE--
- <?php
- echo "*** Testing array_keys() on basic array operation ***\n";
- $basic_arr = array("a" => 1, "b" => 2, 2.0 => 2.0, -23.45 => "asdasd",
- array(1,2,3));
- var_dump(array_keys($basic_arr));
- echo "Done\n";
- ?>
- --EXPECTF--
- *** Testing array_keys() on basic array operation ***
- array(5) {
- [0]=>
- string(1) "a"
- [1]=>
- string(1) "b"
- [2]=>
- int(2)
- [3]=>
- int(-23)
- [4]=>
- int(3)
- }
- Done
|