Requests_Utility_CaseInsensitiveDictionary::offsetGet()
Get the value for the item
{} It's a method of the class: Requests_Utility_CaseInsensitiveDictionary{}
No Hooks.
Return
String|null
. Item value (null if offsetExists is false)
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 6.0
public function offsetGet($key) { $key = strtolower($key); if (!isset($this->data[$key])) { return null; } return $this->data[$key]; }