Requests_Utility_CaseInsensitiveDictionary::offsetGet() public WP 1.0
Get the value for the item
{} It's a method of the class: Requests_Utility_CaseInsensitiveDictionary{}
No Hooks.
Return
String. Item value
Usage
$Requests_Utility_CaseInsensitiveDictionary = new Requests_Utility_CaseInsensitiveDictionary(); $Requests_Utility_CaseInsensitiveDictionary->offsetGet( $key );
- $key(string) (required)
- Item key
Code of Requests_Utility_CaseInsensitiveDictionary::offsetGet() Requests Utility CaseInsensitiveDictionary::offsetGet WP 5.6
public function offsetGet($key) {
$key = strtolower($key);
if (!isset($this->data[$key])) {
return null;
}
return $this->data[$key];
}