Getting last 6 values from an multidimensional array
<p>I have a need to get the last 6 values from an multidimentional array, I was trying to do something like this</p>

<pre><code>for($i=0;$i&lt;6;$i++){
    $stats = array_shift($stats);
}
</code></pre>

<p>But then after the first array_shift I get the following error</p>

<pre><code>PHP Warning: array_shift(): The argument should be an array
</code></pre>

<p>Are there any functions that could do this in PHP?</p>
