You are here

public function Collection::get 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::get()

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 vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Gets the element at the specified key/index.
ArrayCollection::get in vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php
Gets the element at the specified key/index.

File

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

Class

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

Namespace

Doctrine\Common\Collections

Code

public function get($key);