/PHP-8.0/ext/standard/tests/array/ |
H A D | array_diff_assoc_basic.phpt | 16 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 D | uasort_basic1.phpt | 20 // 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 D | usort_basic.phpt | 23 // 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 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 | usort_variation10.phpt | 2 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 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 | uasort_variation11.phpt | 5 /* 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 D | array_flip_variation2.phpt | 2 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 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 | uasort_variation3.phpt | 2 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 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_diff_assoc_variation6.phpt | 20 //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 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_combine_variation4.phpt | 2 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 D | array_combine_basic.phpt | 7 /* 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 D | array_merge_recursive_variation6.phpt | 2 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 D | array_reverse_variation4.phpt | 7 * 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 D | usort_variation3.phpt | 6 * 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 D | array_combine_error2.phpt | 7 // 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 D | array_intersect_assoc_variation5.phpt | 2 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 D | dba_cdb_read.phpt | 17 $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 D | fixedarray_020.phpt | 13 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 D | bug62672.phpt | 20 public function __construct(ArrayObject $keys) 22 $this->_varB = $keys; 23 parent::__construct($keys->getIterator());
|
/PHP-8.0/Zend/tests/ |
H A D | bug76800.phpt | 5 $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 D | string_keys.phpt | 2 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"
|