blob: 0aa84d984d9e6cc09d1d00aa7088f1e376d503fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--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";
?>
--EXPECT--
*** 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
|