public function Collection::hasKey

Returns whether or not the specified key is present.

Parameters

string $key The key for which to check the existence.:

Return value

bool

1 call to Collection::hasKey()
Collection::offsetExists in drupal/core/vendor/guzzle/common/Guzzle/Common/Collection.php
ArrayAccess implementation of offsetExists()

File

drupal/core/vendor/guzzle/common/Guzzle/Common/Collection.php, line 179

Class

Collection
Key value pair collection object

Namespace

Guzzle\Common

Code

public function hasKey($key) {
  return array_key_exists($key, $this->data);
}