import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_splice_basic.php.expectf
blob3e12012fab1225d65cfc58fc8b152d706da5af86
1 *** Testing array_splice() basic operations ***
2 test truncation 
3 array(2) {
4   [0]=>
5   string(4) "blue"
6   [1]=>
7   string(6) "yellow"
9 array(2) {
10   [0]=>
11   string(3) "red"
12   [1]=>
13   string(5) "green"
15 test removing entries from the middle 
16 array(2) {
17   [0]=>
18   string(5) "green"
19   [1]=>
20   string(4) "blue"
22 array(2) {
23   [0]=>
24   string(3) "red"
25   [1]=>
26   string(6) "yellow"
28 test substitution at end 
29 array(3) {
30   [0]=>
31   string(5) "green"
32   [1]=>
33   string(4) "blue"
34   [2]=>
35   string(6) "yellow"
37 array(2) {
38   [0]=>
39   string(3) "red"
40   [1]=>
41   string(6) "orange"
43 array(1) {
44   [0]=>
45   string(6) "yellow"
47 array(5) {
48   [0]=>
49   string(3) "red"
50   [1]=>
51   string(5) "green"
52   [2]=>
53   string(4) "blue"
54   [3]=>
55   string(5) "black"
56   [4]=>
57   string(6) "maroon"
59 test insertion 
60 array(0) {
62 array(5) {
63   [0]=>
64   string(3) "red"
65   [1]=>
66   string(5) "green"
67   [2]=>
68   string(4) "blue"
69   [3]=>
70   string(6) "purple"
71   [4]=>
72   string(6) "yellow"