function Collection::remove

Same name in this branch

Removes the element at the specified index from the collection.

Parameters

string|integer $key The kex/index of the element to remove.:

Return value

mixed The removed element or NULL, if the collection did not contain the element.

1 method overrides Collection::remove()
ArrayCollection::remove in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Removes an element with a specific key/index from the collection.

File

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

Class

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

Namespace

Doctrine\Common\Collections

Code

function remove($key);