1--TEST--
2Test array_shift() function : basic functionality
3--FILE--
4<?php
5/*
6 * Test basic functionality of array_shift()
7 */
8
9echo "*** Testing array_shift() : basic functionality ***\n";
10
11$array = array('zero', 'one', '3' => 'three', 'four' => 4);
12echo "\n-- Before shift: --\n";
13var_dump($array);
14
15echo "\n-- After shift: --\n";
16echo "Returned value:\t";
17var_dump(array_shift($array));
18echo "New array:\n";
19var_dump($array);
20
21echo "Done";
22?>
23--EXPECT--
24*** Testing array_shift() : basic functionality ***
25
26-- Before shift: --
27array(4) {
28  [0]=>
29  string(4) "zero"
30  [1]=>
31  string(3) "one"
32  [3]=>
33  string(5) "three"
34  ["four"]=>
35  int(4)
36}
37
38-- After shift: --
39Returned value:	string(4) "zero"
40New array:
41array(3) {
42  [0]=>
43  string(3) "one"
44  [1]=>
45  string(5) "three"
46  ["four"]=>
47  int(4)
48}
49Done
50