Checks whether the collection contains a specific key/index.
Parameters
mixed $key The key to check for.:
Return value
boolean TRUE if the given key/index exists, FALSE otherwise.
Overrides Collection::containsKey
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php, line 215
Class
- ArrayCollection
- An ArrayCollection is a Collection implementation that wraps a regular PHP array.
Namespace
Doctrine\Common\Collections
Code
public function containsKey($key) {
return isset($this->_elements[$key]);
}