Home
last modified time | relevance | path

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

12345678910

/PHP-8.0/ext/standard/tests/array/
H A Darray_diff_assoc_basic.phpt16 echo "-- Compare Default keys to numeric keys --\n";
21 echo "\n-- Compare Default keys to string keys --\n";
26 echo "\n-- Compare numeric keys to string keys --\n";
35 -- Compare Default keys to numeric keys --
51 -- Compare Default keys to string keys --
67 -- Compare numeric keys to string keys --
H A Duasort_basic1.phpt20 // Int array with default keys
22 echo "-- Numeric array with default keys --\n";
26 // String array with default keys
28 echo "-- String array with default keys --\n";
32 // Associative array with numeric keys
38 // Associative array with string keys
40 echo "-- Associative array with string keys --\n";
48 -- Numeric array with default keys --
66 -- String array with default keys --
78 -- Associative array with numeric keys --
[all …]
H A Dusort_basic.phpt23 // Int array with default keys
26 echo "\n-- Numeric array with default keys --\n";
30 // String array with default keys
33 echo "\n-- String array with default keys --\n";
37 // Associative array with numeric keys
44 // Associative array with string keys
47 echo "\n-- Associative array with string keys --\n";
54 -- Numeric array with default keys --
73 -- String array with default keys --
86 -- Associative array with numeric keys --
[all …]
H A Darray_sum_variation6.phpt11 // array with numeric keys
13 echo "-- with numeric keys --\n";
16 // array with string keys
18 echo "-- with string keys --\n";
24 -- with numeric keys --
26 -- with string keys --
H A Dusort_variation10.phpt2 Test usort() function : usage variations - duplicate keys and values
6 * Pass an array with duplicate keys and values to usort() to test behaviour
23 // Array with duplicate string and integer keys and values
28 echo "\n-- Array with duplicate keys --\n";
32 // Array with default and assigned keys
35 echo "\n-- Array with default/assigned keys --\n";
42 -- Array with duplicate keys --
61 -- Array with default/assigned keys --
H A Darray_walk_variation6.phpt7 * with Numeric & string keys
40 // Numeric keys
45 // String keys
47 echo "-- Associative array with string keys --\n";
50 // binary keys
52 echo "-- Associative array with binary keys --\n";
55 // Mixed keys - numeric/string
64 -- Associative array with numeric keys --
82 -- Associative array with string keys --
96 -- Associative array with binary keys --
[all …]
H A Duasort_variation11.phpt5 /* Testing uasort() with different associative arrays having keys as
6 * string, integer, default & duplicate keys
24 // Array with duplicate string and integer keys
26 echo "-- Array with duplicate keys --\n";
30 // Array with default and assigned keys
32 echo "-- Array with default/assigned keys --\n";
40 -- Array with duplicate keys --
58 -- Array with default/assigned keys --
H A Darray_flip_variation2.phpt2 Test array_flip() function : usage variations - 'input' array with different keys
6 * Trying different keys in $input array argument
9 echo "*** Testing array_flip() : different keys for 'input' array argument ***\n";
28 // numeric keys
35 // string keys
42 // bool keys
48 // null keys
56 //heredoc keys
67 *** Testing array_flip() : different keys for 'input' array argument ***
H A Darray_unique_variation5.phpt2 Test array_unique() function : usage variations - array with duplicate keys
7 * array having duplicate keys as values.
10 echo "*** Testing array_unique() : array with duplicate keys for \$input argument ***\n";
12 // initialize the array having duplicate keys
19 *** Testing array_unique() : array with duplicate keys for $input argument ***
H A Duasort_variation3.phpt2 Test uasort() function : usage variations - sort array with all possible keys
6 * Testing uasort() with 'array_arg' having different keys
9 echo "*** Testing uasort() : Sorting array with all possible keys ***\n";
45 // numeric keys
52 // string keys
59 // bool keys
65 // null keys
73 //heredoc keys
86 *** Testing uasort() : Sorting array with all possible keys ***
H A Darray_walk_recursive_variation6.phpt7 * with Numeric & string keys
40 // Numeric keys
42 echo "-- Associative array with numeric keys --\n";
45 // String keys
47 echo "-- Associative array with string keys --\n";
52 echo "-- Associative array with binary keys --\n";
55 // Mixed keys - numeric/string
64 -- Associative array with numeric keys --
86 -- Associative array with string keys --
100 -- Associative array with binary keys --
[all …]
H A Darray_diff_assoc_variation6.phpt20 //default keys => string values
23 //numeric keys => string values
29 //string keys => string values
35 //default keys => numeric values
38 //numeric keys => numeric values
43 //string keys => numeric values
48 //default keys => float values
51 //numeric keys => float values
56 //string keys => float values
H A Darray_reverse_variation3.phpt89 - with $preserve keys = true -
111 - with $preserve keys = true -
139 - with $preserve keys = true -
173 - with $preserve keys = true -
191 - with $preserve keys = true -
203 - with $preserve keys = true -
229 - with $preserve keys = true -
269 - with $preserve keys = true -
297 - with $preserve keys = true -
327 - with $preserve keys = true -
[all …]
H A Darray_combine_variation4.phpt2 Test array_combine() function : usage variations - associative array with different keys(Bug#43424)
7 * associative arrays having different possible keys to $keys argument and
8 * associative arrays having different possible keys to $values argument.
11 echo "*** Testing array_combine() : assoc array with diff keys to both \$keys and \$values argument…
38 // arrays with integer keys
43 // arrays with float keys
49 // arrays with string keys
59 // array with mixed keys
71 // same arrays are passed to both $keys and $values
85 *** Testing array_combine() : assoc array with diff keys to both $keys and $values argument ***
H A Darray_combine_basic.phpt7 /* Different arrays for $keys and $values arguments */
9 // array with default keys for $keys and $values arguments
14 // associative arrays for $keys and $values arguments
19 // mixed array for $keys and $values arguments
H A Darray_merge_recursive_variation6.phpt2 Test array_merge_recursive() function : usage variations - array with duplicate keys
7 * array having duplicate keys.
10 echo "*** Testing array_merge_recursive() : array with duplicate keys for \$arr1 argument ***\n";
12 /* initialize the array having duplicate keys */
13 // array with numeric keys
15 // array with string keys
32 *** Testing array_merge_recursive() : array with duplicate keys for $arr1 argument ***
H A Darray_reverse_variation4.phpt7 * keys for $array argument
88 - $preserve keys = true -
100 - $preserve keys = true -
116 - $preserve keys = true -
138 - $preserve keys = true -
166 - $preserve keys = true -
188 - $preserve keys = true -
223 - $preserve keys = true -
260 - $preserve keys = true -
292 - $preserve keys = true -
[all …]
H A Dusort_variation3.phpt6 * Pass an array with different data types as keys to usort() to test how it is re-ordered
38 // numeric keys
44 // string keys
49 // bool keys
53 // null keys
60 //heredoc keys
H A Darray_combine_error2.phpt7 // Testing array_combine by passing empty arrays to $keys and $values arguments
11 // Testing array_combine by passing empty array to $keys
12 echo "\n-- Testing array_combine() function with empty array for \$keys argument --\n";
43 -- Testing array_combine() function with empty array for $keys argument --
44 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
46 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
48 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
H A Darray_intersect_assoc_variation5.phpt2 Test array_intersect_assoc() function : usage variations - assoc array with diff keys for 'arr1' ar…
7 * associative arrays having different possible keys to $arr1 argument.
11 echo "*** Testing array_intersect_assoc() : assoc array with diff keys to \$arr1 argument ***\n";
28 // arrays with integer keys
33 // arrays with float keys
39 // arrays with string keys
49 // array with mixed keys
77 *** Testing array_intersect_assoc() : assoc array with diff keys to $arr1 argument ***
/PHP-8.0/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-8.0/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-8.0/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-8.0/Zend/tests/array_unpack/
H A Dstring_keys.phpt2 array unpacking with string keys (not supported)
21 string(36) "Cannot unpack array with string keys"
22 string(42) "Cannot unpack Traversable with string keys"

Completed in 33 milliseconds

12345678910