Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/PHP-7.4/ext/standard/tests/array/
H A Darray_diff_assoc_basic.phpt7 * present in any of the others arguments but do additional checks whether the keys are equal
22 echo "-- Compare Default keys to numeric keys --\n";
27 echo "\n-- Compare Default keys to string keys --\n";
32 echo "\n-- Compare numeric keys to string keys --\n";
41 -- Compare Default keys to numeric keys --
57 -- Compare Default keys to string keys --
73 -- Compare numeric keys to string keys --
H A Dusort_basic.phpt28 // Int array with default keys
31 echo "\n-- Numeric array with default keys --\n";
35 // String array with default keys
38 echo "\n-- String array with default keys --\n";
42 // Associative array with numeric keys
49 // Associative array with string keys
52 echo "\n-- Associative array with string keys --\n";
60 -- Numeric array with default keys --
79 -- String array with default keys --
92 -- Associative array with numeric keys --
[all …]
H A Duasort_basic1.phpt32 // Int array with default keys
34 echo "-- Numeric array with default keys --\n";
38 // String array with default keys
40 echo "-- String array with default keys --\n";
44 // Associative array with numeric keys
50 // Associative array with string keys
52 echo "-- Associative array with string keys --\n";
60 -- Numeric array with default keys --
78 -- String array with default keys --
90 -- Associative array with numeric keys --
[all …]
H A Darray_sum_variation6.phpt16 // array with numeric keys
18 echo "-- with numeric keys --\n";
21 // array with string keys
23 echo "-- with string keys --\n";
29 -- with numeric keys --
31 -- with string keys --
H A Darray_walk_variation6.phpt12 * with Numeric & string keys
36 * $key - keys in given input array
50 * $key - keys in given input array
62 // Numeric keys
67 // String keys
72 // binary keys
77 // Mixed keys - numeric/string
86 -- Associative array with numeric keys --
104 -- Associative array with string keys --
118 -- Associative array with binary keys --
[all …]
H A Dusort_variation10.phpt2 Test usort() function : usage variations - duplicate keys and values
11 * Pass an array with duplicate keys and values to usort() to test behaviour
28 // Array with duplicate string and integer keys and values
33 echo "\n-- Array with duplicate keys --\n";
37 // Array with default and assigned keys
40 echo "\n-- Array with default/assigned keys --\n";
48 -- Array with duplicate keys --
67 -- Array with default/assigned keys --
H A Darray_combine_basic.phpt5 /* Prototype : array array_combine(array $keys, array $values)
6 * Description: Creates an array by using the elements of the first parameter as keys
13 /* Different arrays for $keys and $values arguments */
15 // array with default keys for $keys and $values arguments
20 // associative arrays for $keys and $values arguments
25 // mixed array for $keys and $values arguments
H A Darray_flip_variation2.phpt2 Test array_flip() function : usage variations - 'input' array with different keys
11 * Trying different keys in $input array argument
14 echo "*** Testing array_flip() : different keys for 'input' array argument ***\n";
33 // numeric keys
40 // string keys
47 // bool keys
53 // null keys
61 //heredoc keys
72 *** Testing array_flip() : different keys for 'input' array argument ***
H A Darray_walk_recursive_variation6.phpt12 * with Numeric & string keys
36 * $key - keys in given input array
50 * $key - keys in given input array
62 // Numeric keys
67 // String keys
69 echo "-- Associative array with string keys --\n";
77 // Mixed keys - numeric/string
86 -- Associative array with numeric keys --
108 -- Associative array with string keys --
122 -- Associative array with binary keys --
[all …]
H A Darray_reverse_variation3.phpt94 - with $preserve keys = true -
116 - with $preserve keys = true -
144 - with $preserve keys = true -
178 - with $preserve keys = true -
196 - with $preserve keys = true -
208 - with $preserve keys = true -
234 - with $preserve keys = true -
274 - with $preserve keys = true -
302 - with $preserve keys = true -
332 - with $preserve keys = true -
[all …]
H A Darray_unique_variation5.phpt2 Test array_unique() function : usage variations - array with duplicate keys
12 * array having duplicate keys as values.
15 echo "*** Testing array_unique() : array with duplicate keys for \$input argument ***\n";
17 // initialize the array having duplicate keys
24 *** Testing array_unique() : array with duplicate keys for $input argument ***
H A Darray_diff_assoc_variation6.phpt7 * present in any of the others arguments but do additional checks whether the keys are equal
26 //default keys => string values
29 //numeric keys => string values
35 //string keys => string values
41 //default keys => numeric values
44 //numeric keys => numeric values
49 //string keys => numeric values
54 //defualt keys => float values
57 //numeric keys => float values
62 //string keys => float values
H A Darray_combine_variation4.phpt5 /* Prototype : array array_combine(array $keys, array $values)
6 * Description: Creates an array by using the elements of the first parameter as keys
13 * associative arrays having different possible keys to $keys argument and
14 * associative arrays having different possible keys to $values argument.
17 echo "*** Testing array_combine() : assoc array with diff keys to both \$keys and \$values argument…
44 // arrays with integer keys
49 // arrays with float keys
55 // arrays with string keys
65 // array with mixed keys
77 // same arrays are passed to both $keys and $values
[all …]
H A Duasort_variation11.phpt10 /* Testing uasort() with different associative arrays having keys as
11 * string, integer, default & duplicate keys
36 // Array with duplicate string and integer keys
38 echo "-- Array with duplicate keys --\n";
42 // Array with default and assigned keys
44 echo "-- Array with default/assigned keys --\n";
52 -- Array with duplicate keys --
70 -- Array with default/assigned keys --
H A Darray_merge_recursive_variation6.phpt2 Test array_merge_recursive() function : usage variations - array with duplicate keys
12 * array having duplicate keys.
15 echo "*** Testing array_merge_recursive() : array with duplicate keys for \$arr1 argument ***\n";
17 /* initialize the array having duplicate keys */
18 // array with numeric keys
20 // array with string keys
37 *** Testing array_merge_recursive() : array with duplicate keys for $arr1 argument ***
H A Duasort_variation3.phpt2 Test uasort() function : usage variations - sort array with all posible keys
11 * Testing uasort() with 'array_arg' having different keys
14 echo "*** Testing uasort() : Sorting array with all possible keys ***\n";
57 // numeric keys
64 // string keys
71 // bool keys
77 // null keys
85 //heredoc keys
98 *** Testing uasort() : Sorting array with all possible keys ***
H A Darray_reverse_variation4.phpt12 * keys for $array argument
97 - $preserve keys = true -
109 - $preserve keys = true -
125 - $preserve keys = true -
147 - $preserve keys = true -
175 - $preserve keys = true -
197 - $preserve keys = true -
232 - $preserve keys = true -
269 - $preserve keys = true -
301 - $preserve keys = true -
[all …]
H A Darray_rand_basic1.phpt2 Test array_rand() function : basic functionality - array with default keys
6 * Description: Return key/keys for random entry/entries in the array
11 * Test array_rand() when array with default keys is passed to 'input' argument
14 echo "*** Testing array_rand() : array with default keys ***\n";
32 *** Testing array_rand() : array with default keys ***
H A Dusort_variation3.phpt11 * Pass an array with different data types as keys to usort() to test how it is re-ordered
43 // numeric keys
49 // string keys
54 // bool keys
58 // null keys
65 //heredoc keys
H A Darray_combine_variation6.phpt5 /* Prototype : array array_combine(array $keys, array $values)
6 * Description: Creates an array by using the elements of the first parameter as keys
13 * binary values for $keys and $values argument.
22 // array with binary value for $keys and $values argument
28 // array with binary value for $keys argument
/PHP-7.4/ext/dba/tests/
H A Ddba_cdb_read.phpt17 $keys = $a;
20 $keys .= $a;
38 echo "\n?".$keys;
42 for ($i=0; $i < strlen($keys); $i++) {
43 $key = substr($keys, $i, 1);
48 for ($i=0; $i < strlen($keys); $i++) {
49 $key = substr($keys, $i, 1);
/PHP-7.4/ext/spl/tests/
H A Dfixedarray_020.phpt13 echo "From Array with string keys, no preserve\n";
20 echo "From Array with string keys, preserve\n";
33 From Array with string keys, no preserve
35 From Array with string keys, preserve
36 Exception: array must contain only positive integer keys
H A Dbug62672.phpt20 public function __construct(ArrayObject $keys)
22 $this->_varB = $keys;
23 parent::__construct($keys->getIterator());
/PHP-7.4/Zend/tests/
H A Dbug76800.phpt5 $arr = [1 => 1, 3 => 3]; // [1 => 1, 2 => 3] will print both keys
6 foreach($arr as $key => &$val) { // without & will print both keys
8 $arr[0] = 0; // without this line will print both keys
/PHP-7.4/Zend/tests/array_unpack/
H A Dstring_keys.phpt2 array unpacking with string keys (not supported)
20 string(36) "Cannot unpack array with string keys"
21 string(42) "Cannot unpack Traversable with string keys"

Completed in 1961 milliseconds

12345678910>>...13