You are here

public function AbstractLazyCollection::remove in Plug 7

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.

Overrides Collection::remove

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php, line 92

Class

AbstractLazyCollection
Lazy collection that is backed by a concrete collection

Namespace

Doctrine\Common\Collections

Code

public function remove($key) {
  $this
    ->initialize();
  return $this->collection
    ->remove($key);
}