title: Only keep the first N elements of an array in PHP?
body: <p>Is there a way to only keep the first N (for example 10) elements of an array? I know there is <code>array_pop</code>, but is there a better, more elegant way?</p>