Suppose I have this array:
$array = array(\'10\', \'20\', \'30.30\', \'40\', \'50\');
Questions:
What is the fastest/
Using array_slice is simplest
$newarray = array_slice($array, 1, -1);
If the input array has less than 3 elements in it, the output array will be empty.