Simpan hanya n elemen array 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