WpOrg\Requests\Utility
CaseInsensitiveDictionary::offsetUnset
Unset the given header
Method of the class: CaseInsensitiveDictionary{}
No Hooks.
Returns
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 7.0
public function offsetUnset($offset) {
if (is_string($offset)) {
$offset = strtolower($offset);
}
if ($offset === null) {
$offset = '';
}
unset($this->data[$offset]);
}