Lines Matching refs:offset
2 Test array_slice() function : usage variations - Pass different integers as $offset argument
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 integers as $offset argument to test how array_slice() behaves
19 echo "\n-- \$offset is $i --\n";
22 echo "\n-- \$offset is maximum integer value --\n";
25 echo "\n-- \$offset is minimum integer value --\n";
33 -- $offset is -7 --
47 -- $offset is -6 --
61 -- $offset is -5 --
75 -- $offset is -4 --
87 -- $offset is -3 --
97 -- $offset is -2 --
105 -- $offset is -1 --
111 -- $offset is 0 --
125 -- $offset is 1 --
137 -- $offset is 2 --
147 -- $offset is 3 --
155 -- $offset is 4 --
161 -- $offset is 5 --
165 -- $offset is 6 --
169 -- $offset is 7 --
173 -- $offset is maximum integer value --
177 -- $offset is minimum integer value --