The best way for get range of array
<p>I have array for example with 9 keys:</p>

<pre><code>&lt;?php

$array = array(3,1,4,5,7,34,32,12,13);

print_r($array);
</code></pre>

<p>I would like get data from this array or remove others values. </p>

<p>For example:</p>

<pre><code>$first = 2;
$last = 5;
</code></pre>

<p>this should return me:</p>

<pre><code>$new_array = array(1,4,5,7);
</code></pre>

<p>how is the best method for this?</p>
