Suppose I have this array:
$array = array(\'10\', \'20\', \'30.30\', \'40\', \'50\');
Questions:
What is the fastest/
array_slice is going to be the fastest since it's a single function call.
You use it like this: array_slice($input, 1, -1);
array_slice($input, 1, -1);
Make sure that the array has at least 2 items in it before doing this, though.