WpOrg\Requests\Utility
CaseInsensitiveDictionary::offsetUnset()
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() CaseInsensitiveDictionary::offsetUnset code WP 6.6.2
public function offsetUnset($offset) { if (is_string($offset)) { $offset = strtolower($offset); } unset($this->data[$offset]); }