function 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.

1 method overrides Collection::containsKey()
ArrayCollection::containsKey in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Checks whether the collection contains a specific key/index.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Collection.php, line 100

Class

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

Namespace

Doctrine\Common\Collections

Code

function containsKey($key);