public function Collection::get in Plug 7
Gets the element at the specified key/index.
Parameters
string|integer $key The key/index of the element to retrieve.:
Return value
mixed
2 methods override Collection::get()
- AbstractLazyCollection::get in lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php - Gets the element at the specified key/index.
- ArrayCollection::get in lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ ArrayCollection.php - Gets the element at the specified key/index.
File
- lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ Collection.php, line 119
Class
- Collection
- The missing (SPL) Collection/Array/OrderedMap interface.
Namespace
Doctrine\Common\CollectionsCode
public function get($key);