import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_change_key_case_variation4.php
blobbe8c7f5b62985b9115165b11198026bdae3bc92c
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 * Pass different integer values as $case argument to array_change_key_case() to test behaviour
9 */
11 echo "*** Testing array_change_key_case() : usage variations ***\n";
13 $input = array('One' => 'un', 'TWO' => 'deux', 'three' => 'trois');
14 for ($i = -5; $i <=5; $i += 1){
15 echo "\n-- \$sort argument is $i --\n";
16 $temp = $input;
17 var_dump(array_change_key_case($temp, $i));
20 echo "Done";