LAST_ELEMENT_OF_ARRAY // Get the last element in an array. function last($array) { $array[count($array) - 1]; } ?>