summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/key_exists_basic.phpt
blob: 37fed4e246e3eca2f07b502405c0059b9dc4c8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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);
var_dump(key_exists('bar', $a));
var_dump(key_exists('foo', $a));
?>
--EXPECT--
*** test key_exists() by calling it with its expected arguments ***
bool(true)
bool(false)