Suppose I have this array:
$array = array(\'10\', \'20\', \'30.30\', \'40\', \'50\');
Questions:
What is the fastest/
Removes the first element from the array, and returns it:
array_shift($array);
Removes the last element from the array, and returns it:
array_pop($array);
If you dont mind doing them both at the same time, you can use:
array_shift($array,1,-1));
to knock off the first and last element at the same time.
Check the array_push, array_pop and array_slice documentation :)