public function Collection::hasValue

Checks if any keys contains a certain value

Parameters

string $value Value to search for:

Return value

mixed Returns the key if the value was found FALSE if the value was not found.

File

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

Class

Collection
Key value pair collection object

Namespace

Guzzle\Common

Code

public function hasValue($value) {
  return array_search($value, $this->data);
}