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.
16 lines
497 B
16 lines
497 B
--TEST--
|
|
Test function key_exists() by calling it with its expected arguments
|
|
--CREDITS--
|
|
Francesco Fullone ff@ideato.it
|
|
#PHPTestFest Cesena Italia on 2009-06-20
|
|
--FILE--
|
|
<?php
|
|
echo "*** test key_exists() by calling it with its expected arguments ***\n";
|
|
$a = array('bar' => 1, 'foo' => array('bar' => 2, 'baz' => 3));
|
|
var_dump(key_exists('baz', $a));
|
|
var_dump(key_exists('baz', $a['foo']));
|
|
?>
|
|
--EXPECT--
|
|
*** test key_exists() by calling it with its expected arguments ***
|
|
bool(false)
|
|
bool(true)
|
|
|