Revert "make hphpc able to use ini files"
[hiphop-php.git] / hphp / test / zend / bad / ext / standard / tests / array / array_change_key_case_variation8.php
blobfcccfff97b5bf69f3d2b6db960e57dedd4f2b34c
1 <?php
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
5 */
7 /*
8 * Test how array_change_key_case() behaves with different strings
9 */
11 echo "*** Testing array_change_key_case() : usage variations ***\n";
13 $inputs = array (
14 // group of escape sequences
15 array(null => 1, NULL => 2, "\a" => 3, "\cx" => 4, "\e" => 5, "\f" => 6, "\n" => 7, "\t" => 8, "\xhh" => 9, "\ddd" => 10, "\v" => 11),
17 // array contains combination of capital/small letters
18 array("lemoN" => 1, "Orange" => 2, "banana" => 3, "apple" => 4, "Test" => 5, "TTTT" => 6, "ttt" => 7, "ww" => 8, "x" => 9, "X" => 10, "oraNGe" => 11, "BANANA" => 12)
21 foreach($inputs as $input) {
22 echo "\n-- \$case = default --\n";
23 var_dump(array_change_key_case($input));
24 echo "-- \$case = upper --\n";
25 var_dump(array_change_key_case($input, CASE_UPPER));
28 echo "Done";