Home
last modified time | relevance | path

Searched refs:array_change_key_case (Results 1 – 16 of 16) sorted by relevance

/PHP-7.3/ext/standard/tests/array/
H A Darray_change_key_case_variation1.phpt2 Test array_change_key_case() function : usage variations - Pass different data types as $input arg
5 /* Prototype : array array_change_key_case(array $input [, int $case])
11 * Pass different data types as $input argument to test behaviour of array_change_key_case()
14 echo "*** Testing array_change_key_case() : usage variations ***\n";
85 // loop through each element of $inputs to check the behavior of array_change_key_case()
89 var_dump( array_change_key_case($input) );
98 *** Testing array_change_key_case() : usage variations ***
102 Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d
107 Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d
112 Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d
[all …]
H A Darray_change_key_case_errors.phpt2 Test array_change_key_case() function - 3
9 var_dump( array_change_key_case($int_var) ); // args less than expected
10 var_dump( array_change_key_case($int_var, CASE_UPPER) ); // invalid first argument
11 var_dump( array_change_key_case() ); // Zero argument
12 var_dump( array_change_key_case($item, $item["one"], "CASE_UPPER") ); // more than expected numbers
17 Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d
20 Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d
23 Warning: array_change_key_case() expects at least 1 parameter, 0 given in %s on line %d
26 Warning: array_change_key_case() expects at most 2 parameters, 3 given in %s on line %d
H A Darray_change_key_case_variation.phpt2 Test array_change_key_case() function - 2
9 var_dump(array_change_key_case($item, "CASE_UPPER"));
10 var_dump(array_change_key_case($item, 5));
14 var_dump( array_change_key_case( array("ONE" => 1, "one" => 3, "One" => 4) ) );
15 var_dump( array_change_key_case( array("ONE" => 1, "one" => 6, "One" => 5), "CASE_UPPER" ) );
18 var_dump( array_change_key_case( array("ONE" => 1, "one" => 2, "One" => 3), CASE_UPPER ) );
19 var_dump( array_change_key_case( array("ONE" => 1, "one" => 1, "One" => 2), 5 ) );
24 Warning: array_change_key_case() expects parameter 2 to be int, string given in %s on line %d
41 Warning: array_change_key_case() expects parameter 2 to be int, string given in %s on line %d
H A Darray_change_key_case_variation5.phpt2 Test array_change_key_case() function : usage variations - position of internal pointer
5 /* Prototype : array array_change_key_case(array $input [, int $case])
14 echo "*** Testing array_change_key_case() : usage variations ***\n";
18 echo "\n-- Call array_change_key_case() --\n";
19 var_dump($result = array_change_key_case($input, CASE_UPPER));
29 *** Testing array_change_key_case() : usage variations ***
31 -- Call array_change_key_case() --
H A Darray_change_key_case_variation6.phpt2 Test array_change_key_case() function : usage variations - multidimensional arrays
5 /* Prototype : array array_change_key_case(array $input [, int $case])
11 * Test how array_change_key_case() converts keys in multi-dimensional arrays
14 echo "*** Testing array_change_key_case() : usage variations ***\n";
21 var_dump(array_change_key_case($input, CASE_UPPER));
24 var_dump(array_change_key_case($input['English'], CASE_UPPER));
29 *** Testing array_change_key_case() : usage variations ***
H A Darray_change_key_case_variation7.phpt2 Test array_change_key_case() function : usage variations - referenced variables
5 /* Prototype : array array_change_key_case(array $input [, int $case])
11 * Test array_change_key_case() when:
16 echo "*** Testing array_change_key_case() : usage variations ***\n";
23 var_dump(array_change_key_case($new_input, CASE_UPPER));
32 *** Testing array_change_key_case() : usage variations ***
H A Darray_change_key_case_variation2.phpt2 Test array_change_key_case() function : usage variations - Pass different data types as $case arg
7 /* Prototype : array array_change_key_case(array $input [, int $case])
13 * Pass different data types as $case argument to array_change_key_case() to test behaviour
17 echo "*** Testing array_change_key_case() : usage variations ***\n";
77 // loop through each element of $inputs to check the behavior of array_change_key_case()
81 var_dump( array_change_key_case($array, $input) );
88 *** Testing array_change_key_case() : usage variations ***
242 Warning: array_change_key_case() expects parameter 2 to be int, string given in %s on line %d
247 Warning: array_change_key_case() expects parameter 2 to be int, string given in %s on line %d
252 Warning: array_change_key_case() expects parameter 2 to be int, array given in %s on line %d
[all …]
H A Darray_change_key_case_variation8.phpt2 Test array_change_key_case() function : usage variations - Different strings as keys
10 /* Prototype : array array_change_key_case(array $input [, int $case])
16 * Test how array_change_key_case() behaves with different strings
19 echo "*** Testing array_change_key_case() : usage variations ***\n";
31 var_dump(array_change_key_case($input));
33 var_dump(array_change_key_case($input, CASE_UPPER));
39 *** Testing array_change_key_case() : usage variations ***
H A Darray_change_key_case_variation4.phpt2 Test array_change_key_case() function : usage variations - different int values for $case
5 /* Prototype : array array_change_key_case(array $input [, int $case])
11 * Pass different integer values as $case argument to array_change_key_case() to test behaviour
14 echo "*** Testing array_change_key_case() : usage variations ***\n";
20 var_dump(array_change_key_case($temp, $i));
26 *** Testing array_change_key_case() : usage variations ***
H A Darray_change_key_case_variation3.phpt2 Test array_change_key_case() function : usage variations - different data types as keys
5 /* Prototype : array array_change_key_case(array $input [, int $case])
11 * Pass arrays with different data types as keys to array_change_key_case()
15 echo "*** Testing array_change_key_case() : usage variations ***\n";
93 // loop through each sub-array of $inputs to check the behavior of array_change_key_case()
97 var_dump( array_change_key_case($input, CASE_UPPER) );
104 *** Testing array_change_key_case() : usage variations ***
H A Darray_change_key_case.phpt2 Test array_change_key_case() function
5 /* Prototype: array array_change_key_case ( array $input [, int $case] )
55 var_dump(array_change_key_case($item));
56 var_dump(array_change_key_case($item, CASE_UPPER));
57 var_dump(array_change_key_case($item, CASE_LOWER));
/PHP-7.3/ext/com_dotnet/tests/
H A Dbug39606.phpt10 $arEnv = array_change_key_case($_SERVER, CASE_UPPER);
H A Dbug77621.phpt12 $root = dirname(array_change_key_case($_SERVER, CASE_UPPER)['COMSPEC']);
/PHP-7.3/ext/standard/
H A Dphp_array.h79 PHP_FUNCTION(array_change_key_case);
H A Dbasic_functions.c3381 PHP_FE(array_change_key_case, arginfo_array_change_key_case)
H A Darray.c4419 PHP_FUNCTION(array_change_key_case) argument

Completed in 45 milliseconds