repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import zend standard tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
ext-standard-array
/
array_reverse_variation6.php.expectf
blob
55ddef2bc15ae3f78eead001945ec2788b1b85fc
1
*** Testing array_reverse() : usage variations ***
2
-- with default argument --
3
array(3) {
4
[0]=>
5
array(7) {
6
["a"]=>
7
string(5) "green"
8
[0]=>
9
string(3) "red"
10
[1]=>
11
string(5) "brown"
12
[2]=>
13
int(33)
14
[3]=>
15
int(88)
16
[4]=>
17
string(6) "orange"
18
["item"]=>
19
string(4) "ball"
20
}
21
[1]=>
22
array(5) {
23
[0]=>
24
int(1)
25
[1]=>
26
int(2)
27
[2]=>
28
int(3)
29
[3]=>
30
int(4)
31
[4]=>
32
int(5)
33
}
34
[2]=>
35
array(3) {
36
["color"]=>
37
string(3) "red"
38
["item"]=>
39
string(3) "pen"
40
["place"]=>
41
string(2) "LA"
42
}
43
}
44
array(5) {
45
[0]=>
46
int(5)
47
[1]=>
48
int(4)
49
[2]=>
50
int(3)
51
[3]=>
52
int(2)
53
[4]=>
54
int(1)
55
}
56
-- with all possible arguments --
57
array(3) {
58
[2]=>
59
array(7) {
60
["a"]=>
61
string(5) "green"
62
[0]=>
63
string(3) "red"
64
[1]=>
65
string(5) "brown"
66
[2]=>
67
int(33)
68
[3]=>
69
int(88)
70
[4]=>
71
string(6) "orange"
72
["item"]=>
73
string(4) "ball"
74
}
75
[1]=>
76
array(5) {
77
[0]=>
78
int(1)
79
[1]=>
80
int(2)
81
[2]=>
82
int(3)
83
[3]=>
84
int(4)
85
[4]=>
86
int(5)
87
}
88
[0]=>
89
array(3) {
90
["color"]=>
91
string(3) "red"
92
["item"]=>
93
string(3) "pen"
94
["place"]=>
95
string(2) "LA"
96
}
97
}
98
array(3) {
99
[0]=>
100
array(7) {
101
["a"]=>
102
string(5) "green"
103
[0]=>
104
string(3) "red"
105
[1]=>
106
string(5) "brown"
107
[2]=>
108
int(33)
109
[3]=>
110
int(88)
111
[4]=>
112
string(6) "orange"
113
["item"]=>
114
string(4) "ball"
115
}
116
[1]=>
117
array(5) {
118
[0]=>
119
int(1)
120
[1]=>
121
int(2)
122
[2]=>
123
int(3)
124
[3]=>
125
int(4)
126
[4]=>
127
int(5)
128
}
129
[2]=>
130
array(3) {
131
["color"]=>
132
string(3) "red"
133
["item"]=>
134
string(3) "pen"
135
["place"]=>
136
string(2) "LA"
137
}
138
}
139
array(5) {
140
[4]=>
141
int(5)
142
[3]=>
143
int(4)
144
[2]=>
145
int(3)
146
[1]=>
147
int(2)
148
[0]=>
149
int(1)
150
}
151
array(5) {
152
[0]=>
153
int(5)
154
[1]=>
155
int(4)
156
[2]=>
157
int(3)
158
[3]=>
159
int(2)
160
[4]=>
161
int(1)
162
}
163
Done