/php-src/ext/standard/tests/array/ |
H A D | array_rand_variation6.phpt | 6 * Test behaviour of array_rand() when keys of the 'input' array is heredoc string 9 echo "*** Testing array_rand() : with keys of input array as heredoc strings ***\n"; 65 \*\*\* Testing array_rand\(\) : with keys of input array as heredoc strings \*\*\*
|
H A D | array_reverse_basic1.phpt | 18 var_dump( array_reverse($array, true) ); // expects the keys to be preserved 19 var_dump( array_reverse($array, false) ); // expects the keys not to be preserved
|
H A D | array_reverse_basic2.phpt | 18 var_dump( array_reverse($array, true) ); // expects the keys to be preserved 19 var_dump( array_reverse($array, false) ); // expects the keys not to be preserved
|
H A D | array_reverse_variation3.phpt | 89 - 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 D | array_reverse_variation4.phpt | 7 * 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 D | array_reverse_variation5.phpt | 87 - $preserve keys = true - 99 - $preserve keys = true - 115 - $preserve keys = true - 137 - $preserve keys = true - 165 - $preserve keys = true - 187 - $preserve keys = true - 222 - $preserve keys = true - 258 - $preserve keys = true - 288 - $preserve keys = true - 313 - $preserve keys = true - [all …]
|
H A D | array_shift_variation3.phpt | 2 Test array_shift() function : usage variations - Pass array with different data types as keys 6 * Pass arrays with different data types as keys to test how array_shift() re-assigns keys
|
H A D | array_slice_variation11.phpt | 16 echo "\n-- Call array_slice() on array with string keys--\n"; 23 echo "\n-- Call array_slice() on array with packed keys--\n"; 37 -- Call array_slice() on array with string keys-- 63 -- Call array_slice() on array with packed keys--
|
H A D | array_slice_variation7.phpt | 2 Test array_slice() function : usage variations - different data types as keys in an array 6 * Pass different data types as keys in an array to array_slice()
|
H A D | array_sum_variation6.phpt | 11 // 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 D | array_unique_basic.phpt | 7 // array with default keys
|
H A D | array_unique_variation2.phpt | 44 /*1*/ array(1, 2, 2, 1), // with default keys and numeric values 45 array(1.1, 2.2, 1.1), // with default keys & float values 46 array(false, true, false), // with default keys and boolean values 54 /*9*/ array(1 => "one", 2 => "two", 2 => "two"), // explicit numeric keys, string values 55 array("one" => 1, "two" => 2, "1" => 1 ), // string keys & numeric values 56 array( 1 => 10, 2 => 20, 4 => 40, 5 => 10), // explicit numeric keys and numeric values
|
H A D | array_unique_variation3.phpt | 2 Test array_unique() function : usage variations - associative array with different keys 7 * associative arrays having different keys to $input argument. 10 echo "*** Testing array_unique() : assoc. array with diff. keys passed to \$input argument ***\n"; 34 /*1*/ // arrays with integer keys 38 // arrays with string keys 60 *** Testing array_unique() : assoc. array with diff. keys passed to $input argument ***
|
H A D | array_unique_variation5.phpt | 2 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 D | array_unshift_basic1.phpt | 2 Test array_unshift() function : basic functionality - array with default keys for 'array' argument 6 * Testing array_unshift() by giving array with default keys for $array argument
|
H A D | array_unshift_variation3.phpt | 17 /*1*/ array(1, 2), // array with default keys and numeric values 18 array(1.1, 2.2), // array with default keys & float values 20 array(false,true), // array with default keys and boolean values 26 /*8*/ array(1 => "one", 2 => "two", 3 => "three"), // explicit numeric keys, string values 27 array("one" => 1, "two" => 2, "three" => 3 ), // string keys & numeric values 28 array( 1 => 10, 2 => 20, 4 => 40, 3 => 30), // explicit numeric keys and numeric values 39 // array with repetitive keys
|
H A D | array_unshift_variation4.phpt | 2 Test array_unshift() function : usage variations - assoc. array with diff. keys for 'array' argument 7 * associative arrays having different possible keys to $array argument. 11 echo "*** Testing array_unshift() : associative array with different keys ***\n"; 42 // arrays with integer keys 47 // arrays with string keys 57 // array with mixed keys 91 *** Testing array_unshift() : associative array with different keys ***
|
H A D | array_values_variation3.phpt | 2 Test array_values() function : usage variations - array keys different data types 6 * Pass arrays where the keys are different data types as $input argument
|
H A D | array_values_variation7.phpt | 6 * Check that array_values is re-assigning keys according to the internal order of the array, 7 * and is not dependent on the \$input argument's keys 12 // populate array with 'default' keys in reverse order
|
H A D | array_walk_recursive_variation6.phpt | 7 * 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 D | array_walk_variation6.phpt | 7 * 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 D | arsort_variation6.phpt | 15 // There are multiple keys which are duplicate and the later should be picked
|
H A D | arsort_variation9.phpt | 2 Test arsort() function : usage variations - sorting arrays with/without keys, 'sort_flags' as defau… 28 // to test the new keys for the elements in the sorted array
|
H A D | asort_variation6.phpt | 15 // There are multiple keys which are duplicate and the later should be picked
|
H A D | asort_variation9.phpt | 2 Test asort() function : usage variations - sorting arrays with/without keys, 'sort_flags' as defaul… 28 // to test the new keys for the elements in the sorted array
|