Well, $array[0] would contain the first element, and $array[count($array)-1] would contain the last.
Conversely, you could use reset($array) and end($array), but then you'll also be playing with the array pointers which can lead to bugs if you arent careful.