import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_key_exists_basic.php
blob809ceb28177f22e5e330e3e58420a27477353a3b
1 <?php
2 /* Prototype : bool array_key_exists(mixed $key, array $search)
3 * Description: Checks if the given key or index exists in the array
4 * Source code: ext/standard/array.c
5 * Alias to functions: key_exists
6 */
8 /*
9 * Test basic functionality of array_key_exists()
12 echo "*** Testing array_key_exists() : basic functionality ***\n";
14 $key1 = 'key';
15 $key2 = 'val';
16 $search = array('one', 'key' => 'value', 'val');
17 var_dump(array_key_exists($key1, $search));
18 var_dump(array_key_exists($key2, $search));
20 echo "Done";