import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_change_key_case_variation5.php
bloba610c7bda34a50919ddb725635f3a6390bc6f6a6
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 * Check the position of the internal array pointer after calling the function
9 */
11 echo "*** Testing array_change_key_case() : usage variations ***\n";
13 $input = array ('one' => 'un', 'two' => 'deux', 'three' => 'trois');
15 echo "\n-- Call array_change_key_case() --\n";
16 var_dump($result = array_change_key_case($input, CASE_UPPER));
18 echo "-- Position of Internal Pointer in Result: --\n";
19 echo key($result) . " => " . current($result) . "\n";
20 echo "\n-- Position of Internal Pointer in Original Array: --\n";
21 echo key($input) . " => " . current ($input) . "\n";
23 echo "Done";