[php] Get the first N elements of an array?