Home
last modified time | relevance | path

Searched refs:array_chunk (Results 1 – 25 of 40) sorted by relevance

12

/PHP-7.3/ext/standard/tests/array/
H A Darray_chunk_error.phpt2 Test array_chunk() function : error conditions
5 /* Prototype : array array_chunk(array input, int size [, bool preserve_keys])
10 echo "*** Testing array_chunk() : error conditions ***\n";
13 echo "\n-- Testing array_chunk() function with zero arguments --\n";
14 var_dump( array_chunk() );
21 var_dump( array_chunk($input,$size,$preserve_keys, $extra_arg) );
25 var_dump( array_chunk($input) );
30 *** Testing array_chunk() : error conditions ***
32 -- Testing array_chunk() function with zero arguments --
37 -- Testing array_chunk() function with more than expected no. of arguments --
[all …]
H A Darray_chunk_variation1.phpt2 Test array_chunk() function : usage variations - unexpected values for 'array' argument
5 /* Prototype : proto array array_chunk(array $array, int $size [, bool $preserve_keys])
12 * Testing array_chunk() function with unexpected values for 'array' argument
15 echo "*** Testing array_chunk() : usage variations ***\n";
73 var_dump( array_chunk($value, $size) );
74 var_dump( array_chunk($value, $size, true) );
75 var_dump( array_chunk($value, $size, false) );
82 *** Testing array_chunk() : usage variations ***
86 Warning: array_chunk() expects parameter 1 to be array, int given in %s on line %d
89 Warning: array_chunk() expects parameter 1 to be array, int given in %s on line %d
[all …]
H A Darray_chunk_variation2.phpt2 Test array_chunk() function : usage variations - unexpected values for 'size' argument
7 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
14 * Testing array_chunk() function with unexpected values for 'size' argument
17 echo "*** Testing array_chunk() : usage variations ***\n";
76 var_dump( array_chunk($input, $value) );
77 var_dump( array_chunk($input, $value, true) );
78 var_dump( array_chunk($input, $value, false) );
85 *** Testing array_chunk() : usage variations ***
180 Warning: array_chunk() expects parameter 2 to be int, array given in %s on line %d
183 Warning: array_chunk() expects parameter 2 to be int, array given in %s on line %d
[all …]
H A Darray_chunk_variation5.phpt12 * Testing array_chunk() function with following conditions
19 echo "*** Testing array_chunk() : usage variations ***\n";
29 echo "\n-- Testing array_chunk() when size = $size --\n";
30 var_dump( array_chunk($input_array, $size) );
31 var_dump( array_chunk($input_array, $size, true) );
32 var_dump( array_chunk($input_array, $size, false) );
37 *** Testing array_chunk() : usage variations ***
39 -- Testing array_chunk() when size = -1 --
50 -- Testing array_chunk() when size = 4 --
85 -- Testing array_chunk() when size = 0 --
[all …]
H A Darray_chunk_variation4.phpt2 Test array_chunk() function : usage variations - array with diff. sub arrays
5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
12 * Testing array_chunk() function - input array containing different sub arrays
15 echo "*** Testing array_chunk() : usage variations ***\n";
27 var_dump( array_chunk($input_array, $size) );
30 var_dump( array_chunk($input_array, $size, true) );
33 var_dump( array_chunk($input_array, $size, false) );
38 *** Testing array_chunk() : usage variations ***
40 -- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' as …
67 -- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' = t…
[all …]
H A Darray_chunk_variation7.phpt2 Test array_chunk() function : usage variations - references
5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
12 * Testing array_chunk() function with following conditions
16 echo "*** Testing array_chunk() : usage variations ***\n";
20 echo "\n-- Testing array_chunk(), input array containing references \n";
31 var_dump( array_chunk($input_array, $size) );
32 var_dump( array_chunk($input_array, $size, true) );
33 var_dump( array_chunk($input_array, $size, false) );
38 *** Testing array_chunk() : usage variations ***
40 -- Testing array_chunk(), input array containing references
H A Darray_chunk2.phpt2 basic array_chunk test
6 var_dump(array_chunk($input_array, 0));
7 var_dump(array_chunk($input_array, 0, true));
8 var_dump(array_chunk($input_array, 1));
9 var_dump(array_chunk($input_array, 1, true));
10 var_dump(array_chunk($input_array, 2));
11 var_dump(array_chunk($input_array, 2, true));
12 var_dump(array_chunk($input_array, 10));
13 var_dump(array_chunk($input_array, 10, true));
16 Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d
[all …]
H A Darray_chunk_variation6.phpt2 Test array_chunk() function : usage variations - different arrays
5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
12 * Testing array_chunk() function with following conditions
18 echo "*** Testing array_chunk() : usage variations ***\n";
37 echo "\n-- Testing array_chunk() by supplying various arrays --\n";
42 var_dump( array_chunk($input_array, $size) );
43 var_dump( array_chunk($input_array, $size, true) );
44 var_dump( array_chunk($input_array, $size, false) );
51 *** Testing array_chunk() : usage variations ***
53 -- Testing array_chunk() by supplying various arrays --
H A Darray_chunk.phpt2 array_chunk()
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation26.phpt2 array_chunk() - variation 26
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation27.phpt2 array_chunk() - variation 27
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation28.phpt2 array_chunk() - variation 28
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation8.phpt2 array_chunk() - variation 8
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation31.phpt2 array_chunk() - variation 31
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation32.phpt2 array_chunk() - variation 32
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation21.phpt2 array_chunk() - variation 21
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation24.phpt2 array_chunk() - variation 24
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation11.phpt2 array_chunk() - variation 11
10 var_dump (@array_chunk ($array, $i));
11 var_dump (@array_chunk ($array, $i, TRUE));
12 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation13.phpt2 array_chunk() - variation 13
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation29.phpt2 array_chunk() - variation 29
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation9.phpt2 array_chunk() - variation 9
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation22.phpt2 array_chunk() - variation 22
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation3.phpt2 Test array_chunk() function : usage variations - unexpected values for 'preserve_keys'
5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
11 * Testing array_chunk() function with unexpected values for 'preserve_keys'
14 echo "*** Testing array_chunk() : usage variations ***\n";
68 var_dump( array_chunk($input, $size, $value) );
75 *** Testing array_chunk() : usage variations ***
244 Warning: array_chunk() expects parameter 3 to be bool, object given in %s on line %d
H A Darray_chunk_variation10.phpt2 array_chunk() - variation 10
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));
H A Darray_chunk_variation12.phpt2 array_chunk() - variation 12
9 var_dump (@array_chunk ($array, $i));
10 var_dump (@array_chunk ($array, $i, TRUE));
11 var_dump (@array_chunk ($array, $i, FALSE));

Completed in 23 milliseconds

12