You are here

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

Checks whether the collection contains an element with the specified key/index.

Parameters

string|integer $key The key/index to check for.:

Return value

boolean TRUE if the collection contains an element with the specified key/index, FALSE otherwise.

2 methods override Collection::containsKey()
AbstractLazyCollection::containsKey in vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Checks whether the collection contains an element with the specified key/index.
ArrayCollection::containsKey in vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php
Checks whether the collection contains an element with the specified key/index.

File

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

Class

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

Namespace

Doctrine\Common\Collections

Code

public function containsKey($key);