/PHP-5.3/ext/standard/tests/array/ |
H A D | array_intersect_variation6.phpt | 2 Test array_intersect() function : usage variations - assoc array with diff keys for 'arr2' argument 12 * associative arrays having different possible keys to $arr2 argument. 16 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr2 argument ***\n"; 33 // arrays with integer keys 38 // arrays with float keys 44 // arrays with string keys 54 // array with mixed keys 80 *** Testing array_intersect() : assoc array with diff keys to $arr2 argument ***
|
H A D | array_fill_keys_error.phpt | 5 /* Prototype : proto array array_fill_keys(array keys, mixed val) 6 …* Description: Create an array using the elements of the first parameter as keys each initialized … 13 $keys = array(1, 2); 18 var_dump( array_fill_keys($keys, $val, $extra_arg) ); 21 var_dump( array_fill_keys($keys) );
|
H A D | array_unique_variation3.phpt | 2 Test array_unique() function : usage variations - associative array with different keys 12 * associative arrays having different keys to $input argument. 15 echo "*** Testing array_unique() : assoc. array with diff. keys passed to \$input argument ***\n"; 39 /*1*/ // arrays with integer keys 43 // arrays with float keys 47 // arrays with string keys 69 *** Testing array_unique() : assoc. array with diff. keys passed to $input 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… 13 * associative arrays having different possible keys to $arr1 argument. 17 echo "*** Testing array_intersect_assoc() : assoc array with diff keys to \$arr1 argument ***\n"; 34 // arrays with integer keys 39 // arrays with float keys 45 // arrays with string keys 55 // array with mixed keys 83 *** Testing array_intersect_assoc() : assoc array with diff keys to $arr1 argument ***
|
H A D | array_intersect_variation5.phpt | 2 Test array_intersect() function : usage variations - assoc array with diff keys for 'arr1' argument 12 * associative arrays having different possible keys to $arr1 argument. 16 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr1 argument ***\n"; 33 // arrays with integer keys 38 // arrays with float keys 44 // arrays with string keys 54 // array with mixed keys 80 *** Testing array_intersect() : assoc array with diff keys to $arr1 argument ***
|
H A D | array_reverse_variation5.phpt | 92 - $preserve keys = true - 104 - $preserve keys = true - 120 - $preserve keys = true - 142 - $preserve keys = true - 170 - $preserve keys = true - 192 - $preserve keys = true - 227 - $preserve keys = true - 263 - $preserve keys = true - 293 - $preserve keys = true - 318 - $preserve keys = true - [all …]
|
H A D | array_rand_variation4.phpt | 6 * Description: Return key/keys for random entry/entries in the array 20 // array with numeric keys 25 // array with string keys 29 // array with hexa values as keys 32 // array with octal values as keys 35 // array with bool values as keys 39 // array with special chars as keys 47 * different types of keys
|
H A D | array_combine_error2.phpt | 5 /* Prototype : array array_combine(array $keys, array $values) 6 * Description: Creates an array by using the elements of the first parameter as keys 13 // Testing array_combine by passing empty arrays to $keys and $values arguments 17 // Testing array_combine by passing empty array to $keys 18 echo "\n-- Testing array_combine() function with empty array for \$keys argument --\n"; 39 -- Testing array_combine() function with empty array for $keys argument --
|
H A D | array_map_variation4.phpt | 2 Test array_map() function : usage variations - associative array with different keys 11 * Test array_map() by passing associative array with different keys for $arr1 argument 14 echo "*** Testing array_map() : associative array with diff. keys for 'arr1' argument ***\n"; 46 // arrays with integer keys 51 // arrays with float keys 55 // arrays with string keys 80 *** Testing array_map() : associative array with diff. keys for 'arr1' argument ***
|
H A D | array_map_variation3.phpt | 23 /*1*/ array(1, 2), // array with default keys and numeric values 24 array(1.1, 2.2), // array with default keys & float values 26 array(false,true), // array with default keys and boolean values 32 /*8*/ array(1 => "one", 2 => "two", 3 => "three"), // explicit numeric keys, string values 33 array("one" => 1, "two" => 2, "three" => 3 ), // string keys & numeric values 34 array( 1 => 10, 2 => 20, 4 => 40, 3 => 30), // explicit numeric keys and numeric values 45 // array with repetative keys
|
H A D | array_flip_variation5.phpt | 2 Test array_flip() function : usage variations - 'input' argument with repeatitive keys and values 11 * Using different types of repeatitive keys as well as values for 'input' array 14 echo "*** Testing array_flip() : 'input' array with repeatitive keys/values ***\n"; 43 *** Testing array_flip() : 'input' array with repeatitive keys/values ***
|
H A D | array_map_variation1.phpt | 2 Test array_map() function : usage variations - string keys 13 echo "*** Testing array_map() : string keys ***\n"; 26 *** Testing array_map() : string keys ***
|
H A D | array_diff_basic.phpt | 34 //Test associative array with strings as keys and integers as elements 38 echo "-- Test associative array with strings as keys and integers as elements --\n"; 42 //Test associative array with strings as keys and elements 46 echo "-- Test associative array with strings as keys and integers as elements --\n"; 83 -- Test associative array with strings as keys and integers as elements -- 96 -- Test associative array with strings as keys and integers as elements --
|
H A D | array_combine_variation1.phpt | 2 Test array_combine() function : usage variations - unexpected values for 'keys' argument 5 /* Prototype : array array_combine(array $keys, array $values) 6 * Description: Creates an array by using the elements of the first parameter as keys 12 * Testing array_combine() function by passing values to $keys argument other than arrays 17 echo "*** Testing array_combine() : Passing non-array values to \$keys argument ***\n"; 42 // unexpected values to be passed to $keys argument 92 foreach($keys_passed as $keys) { 94 var_dump( array_combine($keys,$values) ); 101 *** Testing array_combine() : Passing non-array values to $keys argument ***
|
H A D | array_merge_variation5.phpt | 2 Test array_merge() function : usage variations - numeric keys 11 * Pass array_merge() arrays with only numeric keys to test behaviour. 17 //numeric keys
|
H A D | array_merge_variation7.phpt | 2 Test array_merge() function : usage variations - Mixed keys 11 * Pass array_merge() arrays with mixed keys to test how it attaches them to 17 //mixed keys
|
H A D | array_values_variation7.phpt | 11 * Check that array_values is re-assigning keys according to the internal order of the array, 12 * and is not dependant on the \$input argument's keys 17 // populate array with 'default' keys in reverse order
|
H A D | array_merge_variation6.phpt | 2 Test array_merge() function : usage variations - string keys 11 * Pass array_merge arrays with string keys to test behaviour. 17 //string keys
|
/PHP-5.3/ext/standard/tests/strings/ |
H A D | join_variation3.phpt | 18 array(1, 2), // array with default keys and numrice 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 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 repetative keys
|
H A D | parse_str_basic3.phpt | 25 echo "\nTest string containing numerical array keys\n"; 30 echo "\nTest string containing associative keys\n"; 72 echo "\nTest string with 2-dim array with numeric keys\n"; 77 echo "\nTest string with 2-dim array with null keys\n"; 87 echo "\nTest string with 3-dim array with numeric keys\n"; 144 Test string containing numerical array keys 156 Test string containing associative keys 203 Test string with 2-dim array with numeric keys 218 Test string with 2-dim array with null keys 236 Test string with 2-dim array with non-numeric keys [all …]
|
/PHP-5.3/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-5.3/ext/mcrypt/tests/ |
H A D | mcrypt_decrypt_3des_ecb.phpt | 24 // tripledes uses keys upto 192 bits (24 bytes) 25 $keys = array( 50 for ($i = 0; $i < sizeof($keys); $i++) { 51 echo "\nkey length=".strlen($keys[$i])."\n"; 52 special_var_dump(mcrypt_decrypt($cipher, $keys[$i], base64_decode($data1[$i]), $mode));
|
H A D | mcrypt_ecb_3des_decrypt.phpt | 24 // tripledes uses keys upto 192 bits (24 bytes) 25 $keys = array( 51 for ($i = 0; $i < sizeof($keys); $i++) { 52 echo "\nkey length=".strlen($keys[$i])."\n"; 53 special_var_dump(mcrypt_ecb($cipher, $keys[$i], base64_decode($data1[$i]), $mode, $iv));
|
H A D | mcrypt_decrypt_3des_cbc.phpt | 24 // tripledes uses keys upto 192 bits (24 bytes) 25 $keys = array( 51 for ($i = 0; $i < sizeof($keys); $i++) { 52 echo "\nkey length=".strlen($keys[$i])."\n"; 53 special_var_dump(mcrypt_decrypt($cipher, $keys[$i], base64_decode($data1[$i]), $mode, $iv));
|