Home
last modified time | relevance | path

Searched refs:array_key_exists (Results 1 – 25 of 47) sorted by relevance

12

/PHP-8.0/ext/spl/tests/
H A Dbug53515.phpt14 ' array_key_exists: ' . (array_key_exists($key, $a) ? 'true' : 'false') .
20 a: 1 array_key_exists: true property_exists: true
21 b: 1 array_key_exists: true property_exists: true
22 c: 0 array_key_exists: true property_exists: true
23 d: null array_key_exists: true property_exists: true
24 e: array_key_exists: true property_exists: true
25 f: Array array_key_exists: true property_exists: true
26 z: array_key_exists: true property_exists: false
27 : array_key_exists: true property_exists: false
/PHP-8.0/ext/standard/tests/array/
H A Darray_key_exists_basic.phpt2 Test array_key_exists() function : basic functionality
6 * Test basic functionality of array_key_exists()
9 echo "*** Testing array_key_exists() : basic functionality ***\n";
14 var_dump(array_key_exists($key1, $search));
15 var_dump(array_key_exists($key2, $search));
20 *** Testing array_key_exists() : basic functionality ***
H A Darray_key_exists_variation7.phpt2 Test array_key_exists() function : usage variations - position of internal array pointer
6 * Check the position of the internal array pointer after calling array_key_exists()
9 echo "*** Testing array_key_exists() : usage variations ***\n";
13 echo "\n-- Call array_key_exists() --\n";
14 var_dump($result = array_key_exists('one', $input));
22 *** Testing array_key_exists() : usage variations ***
24 -- Call array_key_exists() --
H A Darray_key_exists_variation5.phpt2 Test array_key_exists() function : usage variations - multidimensional arrays
6 * Test how array_key_exists() behaves with multi-dimensional arrays
9 echo "*** Testing array_key_exists() : usage variations ***\n";
17 var_dump(array_key_exists(0, $multi_array));
20 var_dump(array_key_exists(0, $multi_array['sub1']));
25 *** Testing array_key_exists() : usage variations ***
H A Darray_key_exists_variation4.phpt2 Test array_key_exists() function : usage variations - referenced variables
6 * Pass referenced variables as arguments to array_key_exists() to test behaviour
9 echo "*** Testing array_key_exists() : usage variations ***\n";
15 var_dump(array_key_exists('one', $search));
20 *** Testing array_key_exists() : usage variations ***
H A Darray_key_exists_variation3.phpt2 Test array_key_exists() function : usage variations - floats and casting to ints
10 echo "*** Testing array_key_exists() : usage variations ***\n";
21 var_dump(array_key_exists($key, $search));
26 var_dump(array_key_exists((int)$key, $search));
32 *** Testing array_key_exists() : usage variations ***
H A Dbug20865.phpt2 Bug #20865 (array_key_exists and NULL key)
8 var_dump(array_key_exists(NULL, $ta));
H A Darray_key_exists_variation1.phpt2 Test array_key_exists() function : usage variations - Pass different data types as $key arg
6 * Pass different data types as $key argument to array_key_exists() to test behaviour
9 echo "*** Testing array_key_exists() : usage variations ***\n";
83 // loop through each element of $inputs to check the behavior of array_key_exists()
88 var_dump( array_key_exists($input, $search) );
100 *** Testing array_key_exists() : usage variations ***
H A Darray_key_exists_variation6.phpt2 Test array_key_exists() function : usage variations - equality test for certain data types
7 * and test whether array_key_exists(() thinks they are equal and therefore
11 echo "*** Testing array_key_exists() : usage variations ***\n";
31 var_dump(array_key_exists($key, $search));
40 *** Testing array_key_exists() : usage variations ***
H A Darray_key_exists.phpt2 Test array_key_exists() function
25 var_dump( array_key_exists($key, $search_array) );
40 var_dump( array_key_exists($key, $search_array) );
59 var_dump( array_key_exists($key, $search_array) );
66 array_key_exists(array(), array());
79 var_dump(array_key_exists("public_var", $key_check_obj));
219 array_key_exists(): Argument #2 ($array) must be of type array, key_check given
/PHP-8.0/tests/lang/
H A Dbug24652.phpt8 var_dump(array_key_exists(7, $f));
9 var_dump(array_key_exists('7', $f));
15 var_dump(array_key_exists(7, $f));
16 var_dump(array_key_exists('7', $f));
/PHP-8.0/Zend/tests/
H A Dbug73998.phpt2 Bug #73998 (array_key_exists fails on arrays created by get_object_vars)
12 var_dump(array_key_exists(1234, $properties));
H A Dbug71731.phpt10 return array_key_exists($name, $this->data);
14 if (!array_key_exists($name, $this->data)) {
H A Dbug71695.phpt6 var_dump(array_key_exists("foo", $GLOBALS));
H A Dbug71359.phpt9 return array_key_exists($name, $this->data);
13 if (!array_key_exists($name, $this->data)) {
/PHP-8.0/Zend/tests/nullsafe_operator/
H A D013.phpt36 dump_error(fn() => array_key_exists($foo?->foo(), []));
37 dump_error(fn() => array_key_exists('foo', $foo?->foo()));
67 string(74) "array_key_exists(): Argument #2 ($array) must be of type array, null given"
/PHP-8.0/Zend/tests/type_declarations/
H A Dtyped_properties_105.phpt14 var_dump(array_key_exists('c', $defaults));
/PHP-8.0/ext/gd/tests/
H A Dbug70047.phpt10 var_dump(array_key_exists('WebP Support', $info));
/PHP-8.0/ext/curl/tests/
H A Dbug46739.phpt17 echo (array_key_exists('content_type', $info)) ? "set" : "not set";
H A Dcurl_version_basic_001.phpt20 var_dump(array_key_exists("protocols", $info_curl));
/PHP-8.0/tests/classes/
H A Darray_access_006.phpt14 return array_key_exists($this->realArray, $index);
H A Darray_access_007.phpt14 return array_key_exists($this->realArray, $index);
/PHP-8.0/ext/oci8/tests/
H A Dskipif.inc15 if (!array_key_exists($dbtype, $target_dbs) || $target_dbs[$dbtype] !== true)
/PHP-8.0/ext/standard/tests/general_functions/
H A Dget_defined_constants_basic.phpt19 if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {
/PHP-8.0/ext/hash/tests/
H A Dmhash_002.phpt36 if (array_key_exists($name, $known_hash_al)) {

Completed in 31 milliseconds

12