import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_values_variation7.php
blob907e06987699ebe5a9db32573fe24e3f0c9d5b3d
1 <?php
2 /* Prototype : array array_values(array $input)
3 * Description: Return just the values from the input array
4 * Source code: ext/standard/array.c
5 */
7 /*
8 * Check that array_values is re-assigning keys according to the internal order of the array,
9 * and is not dependant on the \$input argument's keys
12 echo "*** Testing array_values() : usage variations ***\n";
14 // populate array with 'default' keys in reverse order
15 $input = array(3 => 'three', 2 => 'two', 1 => 'one', 0 => 'zero');
17 echo "\n-- \$input argument: --\n";
18 var_dump($input);
20 echo "\n-- Result of array_values() --\n";
21 var_dump(array_values($input));
23 echo "Done";