TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
485 B

--TEST--
Test array_key_exists() function : basic functionality
--FILE--
<?php
/*
* Test basic functionality of array_key_exists()
*/
echo "*** Testing array_key_exists() : basic functionality ***\n";
$key1 = 'key';
$key2 = 'val';
$search = array('one', 'key' => 'value', 'val');
var_dump(array_key_exists($key1, $search));
var_dump(array_key_exists($key2, $search));
echo "Done";
?>
--EXPECT--
*** Testing array_key_exists() : basic functionality ***
bool(true)
bool(false)
Done