blob: 1f5f85fb6d44d4a8a6f5dbbf14ef02c4bb48badf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
--TEST--
SPL: iterator_to_array() without keys
--FILE--
<?php
$it = new AppendIterator();
$it->append(new ArrayIterator(array(1,2)));
$it->append(new ArrayIterator(array(2,3)));
var_dump(iterator_to_array($it));
var_dump(iterator_to_array($it, false));
var_dump(iterator_to_array($it, true));
?>
===DONE===
--EXPECT--
array(2) {
[0]=>
int(2)
[1]=>
int(3)
}
array(4) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(2)
[3]=>
int(3)
}
array(2) {
[0]=>
int(2)
[1]=>
int(3)
}
===DONE===
|