Home
last modified time | relevance | path

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

1234567891011

/PHP-8.4/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 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 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 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 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 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 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
34 // string keys
41 // bool keys
47 // null keys
55 //heredoc keys
66 *** 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
51 // string keys
58 // bool keys
64 // null keys
72 //heredoc keys
85 *** Testing uasort() : Sorting array with all possible keys ***
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 string keys
53 // array with mixed keys
65 // same arrays are passed to both $keys and $values
79 *** Testing array_combine() : assoc array with diff keys to both $keys and $values argument ***
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_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_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_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_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_reverse_variation4.phpt7 * keys for $array argument
42 // arrays with string keys
84 - $preserve keys = true -
96 - $preserve keys = true -
112 - $preserve keys = true -
134 - $preserve keys = true -
169 - $preserve keys = true -
206 - $preserve keys = true -
238 - $preserve keys = true -
260 - $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
/PHP-8.4/ext/dba/tests/
H A Ddba_cdb_read.phpt21 $keys = $a;
24 $keys .= $a;
42 echo "\n?".$keys;
46 for ($i=0; $i < strlen($keys); $i++) {
47 $key = substr($keys, $i, 1);
52 for ($i=0; $i < strlen($keys); $i++) {
53 $key = substr($keys, $i, 1);
/PHP-8.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-8.4/ext/standard/tests/general_functions/
H A Darray_is_list.phpt30 test_is_list("mixed keys", [0 => 0, "a" => 1]);
31 test_is_list("ordered keys", [0 => 0, 1 => 1]);
32 test_is_list("shuffled keys", [1 => 0, 0 => 1]);
33 test_is_list("skipped keys", [0 => 0, 2 => 2]);
87 mixed keys: false
88 ordered keys: true
89 shuffled keys: false
90 skipped keys: false
/PHP-8.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-8.4/ext/standard/tests/strings/
H A Dparse_str_basic3.phpt15 echo "\nTest string containing numerical array keys\n";
20 echo "\nTest string containing associative keys\n";
50 echo "\nTest string with 2-dim array with numeric keys\n";
55 echo "\nTest string with 2-dim array with null keys\n";
65 echo "\nTest string with 3-dim array with numeric keys\n";
100 Test string containing numerical array keys
112 Test string containing associative keys
162 Test string with 2-dim array with numeric keys
177 Test string with 2-dim array with null keys
195 Test string with 2-dim array with non-numeric keys
[all …]

Completed in 32 milliseconds

1234567891011