Lines Matching refs:array_chunk
2 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() );
16 echo "\n-- Testing array_chunk() function with more than expected no. of arguments --\n";
21 var_dump( array_chunk($input,$size,$preserve_keys, $extra_arg) );
23 echo "\n-- Testing array_chunk() function with less than expected no. of arguments --\n";
25 var_dump( array_chunk($input) );
30 *** Testing array_chunk() : error conditions ***
32 -- Testing array_chunk() function with zero arguments --
34 Warning: array_chunk() expects at least 2 parameters, 0 given in %s on line %d
37 -- Testing array_chunk() function with more than expected no. of arguments --
39 Warning: array_chunk() expects at most 3 parameters, 4 given in %s on line %d
42 -- Testing array_chunk() function with less than expected no. of arguments --
44 Warning: array_chunk() expects at least 2 parameters, 1 given in %s on line %d