2 /* Prototype : array array_change_key_case(array $input [, int $case])
3 * Description: Retuns an array with all string keys lowercased [or uppercased]
4 * Source code: ext/standard/array.c
8 * Pass different data types as $case argument to array_change_key_case() to test behaviour
9 * Where possible, CASE_UPPER has been entered as a string value
12 echo "*** Testing array_change_key_case() : usage variations ***\n";
14 // Initialise function arguments not being substituted
15 $array = array ('one' => 1, 'TWO' => 2, 'Three' => 3);
17 //get an unset variable
26 // get a resource variable
27 $fp = fopen(__FILE__
, "r");
29 // unexpected values to be passed to $case argument
66 /*22*/ @$undefined_var,
72 // loop through each element of $inputs to check the behavior of array_change_key_case()
74 foreach($inputs as $input) {
75 echo "\n-- Iteration $iterator --\n";
76 var_dump( array_change_key_case($array, $input) );