Home
last modified time | relevance | path

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

123

/php-src/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-src/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 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";
76 // loop through each element of $inputs to check the behavior of array_key_exists()
81 var_dump( array_key_exists($input, $search) );
93 *** 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_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
24 var_dump( array_key_exists($key, $search_array) );
39 var_dump( array_key_exists($key, $search_array) );
58 var_dump( array_key_exists($key, $search_array) );
65 array_key_exists(array(), array());
78 var_dump(array_key_exists("public_var", $key_check_obj));
208 array_key_exists(): Argument #2 ($array) must be of type array, key_check given
H A Darray_fill_variation6.phpt8 array_key_exists(PHP_INT_MAX, $a),
/php-src/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-src/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 Dbug71359.phpt9 return array_key_exists($name, $this->data);
13 if (!array_key_exists($name, $this->data)) {
H A Dgh16509.phpt7 && array_key_exists("opcache.jit", $conf)
/php-src/ext/curl/tests/
H A Dcurl_basic_027.phpt16 var_dump(array_key_exists('capath', curl_getinfo($ch)));
17 var_dump(array_key_exists('cainfo', curl_getinfo($ch)));
H A Dbug46739.phpt15 echo (array_key_exists('content_type', $info)) ? "set" : "not set";
H A Dcurl_version_basic_001.phpt16 var_dump(array_key_exists("protocols", $info_curl));
/php-src/ext/gd/tests/
H A Dbug70047.phpt8 var_dump(array_key_exists('WebP Support', $info));
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_105.phpt14 var_dump(array_key_exists('c', $defaults));
/php-src/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()));
76 string(74) "array_key_exists(): Argument #2 ($array) must be of type array, null given"
/php-src/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-src/ext/standard/tests/general_functions/
H A Dget_defined_constants_basic.phpt19 if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {

Completed in 15 milliseconds

123