I have a need to get the last 6 values from an multidimentional array, I was trying to do something like this
for($i=0;$i<6;$i++){
$stats = array_shift($stats);
}
But then after the first array_shift I get the following error
PHP Warning: array_shift(): The argument should be an array
Are there any functions that could do this in PHP