import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_shift_basic.php
blob4955c69ef8b67c7feaea6de86c2454d7026b6032
1 <?php
2 /* Prototype : mixed array_shift(array &$stack)
3 * Description: Pops an element off the beginning of the array
4 * Source code: ext/standard/array.c
5 */
7 /*
8 * Test basic functionality of array_shift()
9 */
11 echo "*** Testing array_shift() : basic functionality ***\n";
13 $array = array('zero', 'one', '3' => 'three', 'four' => 4);
14 echo "\n-- Before shift: --\n";
15 var_dump($array);
17 echo "\n-- After shift: --\n";
18 echo "Returned value:\t";
19 var_dump(array_shift($array));
20 echo "New array:\n";
21 var_dump($array);
23 echo "Done";