public function Header::removeValue

Remove a specific value from the header

Parameters

string $value Value to remove:

Return value

self

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Header.php, line 178

Class

Header
Represents a header and all of the values stored by that header

Namespace

Guzzle\Http\Message

Code

public function removeValue($searchValue) {
  foreach ($this->values as $key => $values) {
    foreach ($values as $index => $value) {
      if ($value == $searchValue) {
        unset($this->values[$key][$index]);
        $this
          ->clearCache();
        break 2;
      }
    }
  }
  return $this;
}