title: How can I select a range of indexes from an array?
body: <p>In python I would do this:</p>
  <pre class="lang-py prettyprint-override"><code>var = [&quot;test&quot;,&quot;test1&quot;,&quot;test2&quot;,&quot;test3&quot;];
  test= var[1:3];
  </code></pre>
  <p>Then variable 'test' would be <code>[&quot;test1&quot;,&quot;test2&quot;,&quot;test3&quot;]</code></p>
  <p>How can I do this in PHP?</p>