Lines Matching refs:size
2 Test array_chunk() function : usage variations - different 'size' values
5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
7 * : Chunks an array into size large chunks
13 * 1. -ve size value
14 * 2. size value is more than the no. of elements in the input array
15 * 3. size value is zero
16 * 4. Decimal size value
27 // loop through the array for size argument
28 foreach ($sizes as $size){
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) );
39 -- Testing array_chunk() when size = -1 --
50 -- Testing array_chunk() when size = 4 --
85 -- Testing array_chunk() when size = 0 --
96 -- Testing array_chunk() when size = 1.5 --