title: PHP: Select part of array
body: <p>I have an array:</p>
  
  <pre><code>$array = [1,2,3,4,5,6,7,8];
  </code></pre>
  
  <p>How do I select a subset of the array, to return just [2,3,4,5,6]?</p>
  
  <p>I think it should be something along the lines of:</p>
  
  <pre><code>$array[2-6]
  </code></pre>
  
  <p>but that's not working</p>