Lines Matching refs:array_slice
2 Test array_slice() function : usage variations - Pass different data types as $offset arg
7 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
13 * Pass different data types as $offset argument to array_slice() to test behaviour
16 echo "*** Testing array_slice() : usage variations ***\n";
84 // loop through each element of $inputs to check the behavior of array_slice()
88 var_dump( array_slice($input_array, $input) );
98 *** Testing array_slice() : usage variations ***
260 Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
265 Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
270 Warning: array_slice() expects parameter 2 to be long, array given in %s on line %d
275 Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
280 Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
285 Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d