Mantenga solo n elementos de la matriz PHP
return array_slice($array, 0, $n); // Keep only n first elements of the array and
// returns them
L'homme habile
return array_slice($array, 0, $n); // Keep only n first elements of the array and
// returns them