/php-src/ext/standard/tests/array/ |
H A D | array_rand_basic1.phpt | 2 Test array_rand() function : basic functionality - array with default keys 6 * Test array_rand() when array with default keys is passed to 'input' argument 9 echo "*** Testing array_rand() : array with default keys ***\n"; 27 *** Testing array_rand() : array with default keys ***
|
H A D | array_intersect_assoc_variation6.phpt | 2 Test array_intersect_assoc() function : usage variations - assoc array with diff keys for 'arr2' ar… 7 * associative arrays having different possible keys to $arr2 argument. 11 echo "*** Testing array_intersect_assoc() : assoc array with diff keys to \$arr2 argument ***\n"; 28 // arrays with integer keys 33 // arrays with string keys 43 // array with mixed keys 71 *** Testing array_intersect_assoc() : assoc array with diff keys to $arr2 argument ***
|
H A D | array_intersect_variation6.phpt | 2 Test array_intersect() function : usage variations - assoc array with diff keys for 'arr2' argument 7 * associative arrays having different possible keys to $arr2 argument. 11 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr2 argument ***\n"; 28 // arrays with integer keys 33 // arrays with string keys 43 // array with mixed keys 69 *** Testing array_intersect() : assoc array with diff keys to $arr2 argument ***
|
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 string keys 43 // array with mixed keys 71 *** Testing array_intersect_assoc() : assoc array with diff keys to $arr1 argument ***
|
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_combine_variation3.phpt | 6 * Passing different types of arrays to both $keys and $values arguments and testing whether 41 // arrays passed to $keys argument 43 /*1*/ array(1, 2), // with default keys and numeric values 44 array(1.1, 2.2), // with default keys & float values 45 array(false,true), // with default keys and boolean values 53 /*9*/ array(1 => "one", 2 => "two", 3 => "three"), // explicit numeric keys, string values 54 array("one" => 1, "two" => 2, "three" => 3 ), // string keys & numeric values 55 array( 1 => 10, 2 => 20, 4 => 40, 3 => 30), // explicit numeric keys and numeric values 66 // array with repetitive keys 71 // same arrays are passed to both $keys and $values [all …]
|
H A D | array_intersect_variation5.phpt | 2 Test array_intersect() function : usage variations - assoc array with diff keys for 'arr1' argument 7 * associative arrays having different possible keys to $arr1 argument. 11 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr1 argument ***\n"; 28 // arrays with integer keys 33 // arrays with string keys 43 // array with mixed keys 69 *** Testing array_intersect() : assoc array with diff keys to $arr1 argument ***
|
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_map_variation1.phpt | 2 Test array_map() function : usage variations - string keys 6 echo "*** Testing array_map() : string keys ***\n"; 18 *** Testing array_map() : string keys ***
|
H A D | array_merge_variation5.phpt | 2 Test array_merge() function : usage variations - numeric keys 6 * Pass array_merge() arrays with only numeric keys to test behaviour. 12 //numeric keys
|
H A D | array_merge_variation7.phpt | 2 Test array_merge() function : usage variations - Mixed keys 6 * Pass array_merge() arrays with mixed keys to test how it attaches them to 12 //mixed keys
|
H A D | array_flip_variation5.phpt | 2 Test array_flip() function : usage variations - 'input' argument with repeatitive keys and values 6 * Using different types of repeatitive keys as well as values for 'input' array 9 echo "*** Testing array_flip() : 'input' array with repeatitive keys/values ***\n"; 38 *** Testing array_flip() : 'input' array with repeatitive keys/values ***
|
H A D | array_map_variation4.phpt | 2 Test array_map() function : usage variations - associative array with different keys 6 * Test array_map() by passing associative array with different keys for $arr1 argument 9 echo "*** Testing array_map() : associative array with diff. keys for 'arr1' argument ***\n"; 41 // arrays with integer keys 46 // arrays with string keys 71 *** Testing array_map() : associative array with diff. keys for 'arr1' argument ***
|
H A D | array_diff_basic.phpt | 28 //Test associative array with strings as keys and integers as elements 32 echo "-- Test associative array with strings as keys and integers as elements --\n"; 36 //Test associative array with strings as keys and elements 40 echo "-- Test associative array with strings as keys and integers as elements --\n"; 77 -- Test associative array with strings as keys and integers as elements -- 90 -- Test associative array with strings as keys and integers as elements --
|
H A D | array_map_variation3.phpt | 18 /*1*/ array(1, 2), // array with default keys and numeric values 19 array(1.1, 2.2), // array with default keys & float values 21 array(false,true), // array with default keys and boolean values 27 /*8*/ array(1 => "one", 2 => "two", 3 => "three"), // explicit numeric keys, string values 28 array("one" => 1, "two" => 2, "three" => 3 ), // string keys & numeric values 29 array( 1 => 10, 2 => 20, 4 => 40, 3 => 30), // explicit numeric keys and numeric values 40 // array with repetitive keys
|
H A D | array_rand_variation4.phpt | 15 // array with numeric keys 19 // array with string keys 23 // array with hexa values as keys 26 // array with octal values as keys 29 // array with bool values as keys 33 // array with special chars as keys 41 * different types of keys
|
H A D | array_merge_variation6.phpt | 2 Test array_merge() function : usage variations - string keys 6 * Pass array_merge arrays with string keys to test behaviour. 12 //string keys
|
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_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_combine_variation6.phpt | 7 * binary values for $keys and $values argument. 16 // array with binary value for $keys and $values argument 22 // array with binary value for $keys argument
|
H A D | array_filter_variation10.phpt | 2 Test array_filter() function : usage variations - using the array keys inside 'callback' 6 * Using array keys as an argument to the 'callback' 9 echo "*** Testing array_filter() : usage variations - using array keys in 'callback' ***\n"; 55 *** Testing array_filter() : usage variations - using array keys in 'callback' ***
|
/php-src/ext/standard/tests/strings/ |
H A D | join_variation3.phpt | 12 array(1, 2), // array with default keys and numrice values 13 array(1.1, 2.2), // array with default keys & float values 15 array(false,true), // array with default keys and boolean values 21 array(1 => "one", 2 => "two", 3 => "three"), // explicit numeric keys, string values 22 array("one" => 1, "two" => 2, "three" => 3 ), // string keys & numeric values 23 array( 1 => 10, 2 => 20, 4 => 40, 3 => 30), // explicit numeric keys and numeric values 34 // array with repetitive keys
|
/php-src/Zend/tests/ |
H A D | bug39449.phpt | 6 private $keys = array(); 8 return $this->keys[$val]; 11 $this->keys[$k] = $v;
|
H A D | bug45877.phpt | 7 $keys = array(PHP_INT_MAX, 13 var_dump(array_fill_keys($keys, 1));
|
/php-src/ext/dba/tests/ |
H A D | dba_array_keys.phpt | 2 DBA check behaviour of array keys 20 var_dump(dba_insert(['', ''], 'Empty keys', $db)); 43 string(10) "Empty keys"
|