/php-src/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 | 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_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 34 // string keys 41 // bool keys 47 // null keys 55 //heredoc keys 66 *** 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 | 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 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 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_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_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_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_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_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
|
/php-src/ext/standard/tests/array/sort/ |
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 | 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_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 | 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 | 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 51 // string keys 58 // bool keys 64 // null keys 72 //heredoc keys 85 *** Testing uasort() : Sorting array with all possible keys ***
|
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
|
/php-src/ext/standard/tests/array/array_walk/ |
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 | 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 …]
|
/php-src/ext/dba/tests/ |
H A D | dba_cdb_read.phpt | 21 $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-src/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-src/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-src/ext/standard/tests/general_functions/ |
H A D | array_is_list.phpt | 30 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-src/ext/standard/tests/strings/ |
H A D | parse_str_basic3.phpt | 15 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 …]
|