public function Collection::keySearch

Case insensitive search the keys in the collection

Parameters

string $key Key to search for:

Return value

bool|string Returns false if not found, otherwise returns the key

File

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

Class

Collection
Key value pair collection object

Namespace

Guzzle\Common

Code

public function keySearch($key) {
  foreach (array_keys($this->data) as $k) {
    if (!strcasecmp($k, $key)) {
      return $k;
    }
  }
  return false;
}