function Collection::key

Gets the key/index of the element at the current iterator position.

1 method overrides Collection::key()
ArrayCollection::key in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Gets the current key/index at the current internal iterator position.

File

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

Class

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

Namespace

Doctrine\Common\Collections

Code

function key();