Annotation of embedaddon/php/ext/standard/tests/array/array_chunk_variation32.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: array_chunk() - variation 32
3: --FILE--
4: <?php
5: $array = array (2 => 1);
6: var_dump ($array);
7: for ($i = 0; $i < (sizeof($array) + 1); $i++) {
8: echo "[$i]\n";
9: var_dump (@array_chunk ($array, $i));
10: var_dump (@array_chunk ($array, $i, TRUE));
11: var_dump (@array_chunk ($array, $i, FALSE));
12: echo "\n";
13: }
14: ?>
15: --EXPECT--
16: array(1) {
17: [2]=>
18: int(1)
19: }
20: [0]
21: NULL
22: NULL
23: NULL
24:
25: [1]
26: array(1) {
27: [0]=>
28: array(1) {
29: [0]=>
30: int(1)
31: }
32: }
33: array(1) {
34: [0]=>
35: array(1) {
36: [2]=>
37: int(1)
38: }
39: }
40: array(1) {
41: [0]=>
42: array(1) {
43: [0]=>
44: int(1)
45: }
46: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>