Lines Matching refs:array_chunk
2 Test array_chunk() function : usage variations - different 'size' values
5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
12 * 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 --
41 Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d
44 Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d
47 Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d
50 -- Testing array_chunk() when size = 4 --
85 -- Testing array_chunk() when size = 0 --
87 Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d
90 Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d
93 Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d
96 -- Testing array_chunk() when size = 1.5 --