Lines Matching refs:length
2 Test array_slice() function : usage variations - pass different int values as $length arg
5 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
6 * Description: Returns elements specified by offset and length
11 * Pass different integer values as $length argument to array_slice() to test behaviour
20 echo "\n-- \$length is $i --\n";
23 echo "\n-- \$length is maximum integer value --\n";
26 echo "\n-- \$length is minimum integer value --\n";
34 -- $length is -6 --
38 -- $length is -5 --
42 -- $length is -4 --
46 -- $length is -3 --
52 -- $length is -2 --
60 -- $length is -1 --
70 -- $length is 0 --
74 -- $length is 1 --
80 -- $length is 2 --
88 -- $length is 3 --
98 -- $length is 4 --
110 -- $length is 5 --
122 -- $length is 6 --
134 -- $length is maximum integer value --
146 -- $length is minimum integer value --