function Collection::last

Sets the internal iterator to the last element in the collection and returns this element.

Return value

mixed

1 method overrides Collection::last()
ArrayCollection::last in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Sets the internal iterator to the last element in the collection and returns this element.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Collection.php, line 155

Class

Collection
The missing (SPL) Collection/Array/OrderedMap interface.

Namespace

Doctrine\Common\Collections

Code

function last();