PHP: Remove the first and last item of the array
- by phpBOY
Hi,
Suppose I have this array:
$array = array('10', '20', '30.30', '40', '50');
Questions
What is the fastest/easiest way to remove the first item from the above array?
What is the fastest/easiest way to remove the last item from the above array?
So the resulting array contains only these values:
'20'
'30.30'
'40'