mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
RFC: https://wiki.php.net/rfc/implicit-float-int-deprecate Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
25 lines
438 B
PHP
25 lines
438 B
PHP
--TEST--
|
|
Test array_keys() function (variation - 2)
|
|
--FILE--
|
|
<?php
|
|
|
|
echo "\n*** Testing array_keys() on an array created on the fly ***\n";
|
|
var_dump(array_keys(array("a" => 1, "b" => 2, "c" => 3)));
|
|
var_dump(array_keys(array())); // null array
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
*** Testing array_keys() on an array created on the fly ***
|
|
array(3) {
|
|
[0]=>
|
|
string(1) "a"
|
|
[1]=>
|
|
string(1) "b"
|
|
[2]=>
|
|
string(1) "c"
|
|
}
|
|
array(0) {
|
|
}
|
|
Done
|