title: PHP: how to 'cut' my array?
body: <p>I have an array</p>
  
  <pre><code>Array
  (
      [0] =&gt; 0
      [1] =&gt; 1
      [2] =&gt; 2
      [3] =&gt; 3
      [4] =&gt; 4
      [5] =&gt; 5
  )
  </code></pre>
  
  <p>How can I remove the latest 2 cells and make it shorter ?</p>
  
  <pre><code>Array
  (
      [0] =&gt; 0
      [1] =&gt; 1
      [2] =&gt; 2
  )
  </code></pre>
  
  <p>Thanks</p>