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
8 * Test basic functionality of array_shift()
11 echo "*** Testing array_shift() : basic functionality ***\n";
13 $array = array('zero', 'one', '3' => 'three', 'four' => 4);
14 echo "\n-- Before shift: --\n";
17 echo "\n-- After shift: --\n";
18 echo "Returned value:\t";
19 var_dump(array_shift($array));