Requests_Utility_CaseInsensitiveDictionary::offsetSet() WordPress Method
The offsetSet() method is part of the Requests_Utility_CaseInsensitiveDictionary class, which provides a case-insensitive dictionary for storing data. The offsetSet() method allows you to set a value for a key in the dictionary. The key can be any case, but the value will be stored in lowercase.
Requests_Utility_CaseInsensitiveDictionary::offsetSet( string $key, string $value ) #
Set the given item
Parameters
- $key
(string)(Required)Item name
- $value
(string)(Required)Item value
Source
File: wp-includes/Requests/Utility/CaseInsensitiveDictionary.php
public function offsetSet($key, $value) { if ($key === null) { throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset'); } $key = strtolower($key); $this->data[$key] = $value; }
Expand full source codeCollapse full source codeView on TracView on GitHub