You are here

public function Collection::remove in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php \Doctrine\Common\Collections\Collection::remove()

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.

2 methods override Collection::remove()
AbstractLazyCollection::remove in vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Removes the element at the specified index from the collection.
ArrayCollection::remove in vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php
Removes the element at the specified index from the collection.

File

vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php, line 91

Class

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

Namespace

Doctrine\Common\Collections

Code

public function remove($key);