title: PHP: Remove the first and last item of the array
body: <p>Suppose I have this array:</p>
  
  <pre><code> $array = array('10', '20', '30.30', '40', '50');
  </code></pre>
  
  <p><strong>Questions:</strong></p>
  
  <p>What is the fastest/easiest way to remove the first item from the above array?<br>
  What is the fastest/easiest way to remove the last item from the above array?  </p>
  
  <p>So the resulting array contains only these values:</p>
  
  <ul>
  <li>'20'</li>
  <li>'30.30'</li>
  <li>'40'</li>
  </ul>