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";
35 -- $length is -6 --
39 -- $length is -5 --
43 -- $length is -4 --
47 -- $length is -3 --
53 -- $length is -2 --
61 -- $length is -1 --
71 -- $length is 0 --
75 -- $length is 1 --
81 -- $length is 2 --
89 -- $length is 3 --
99 -- $length is 4 --
111 -- $length is 5 --
123 -- $length is 6 --
135 -- $length is maximum integer value --
147 -- $length is minimum integer value --