public function Collection::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.
2 methods override Collection::remove()
- AbstractLazyCollection::remove in lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php - Removes the element at the specified index from the collection.
- ArrayCollection::remove in lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ ArrayCollection.php - Removes the element at the specified index from the collection.
File
- lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ Collection.php, line 91
Class
- Collection
- The missing (SPL) Collection/Array/OrderedMap interface.
Namespace
Doctrine\Common\CollectionsCode
public function remove($key);