WpOrg\Requests\Utility

CaseInsensitiveDictionary::offsetUnset()publicWP 1.0ReturnTypeWillChange

Unset the given header

Method of the class: CaseInsensitiveDictionary{}

No Hooks.

Return

null. Nothing (null).

Usage

$CaseInsensitiveDictionary = new CaseInsensitiveDictionary();
$CaseInsensitiveDictionary->offsetUnset( $offset );
$offset(string) (required)
The key for the item to unset.

CaseInsensitiveDictionary::offsetUnset() code WP 6.6.2

public function offsetUnset($offset) {
	if (is_string($offset)) {
		$offset = strtolower($offset);
	}

	unset($this->data[$offset]);
}