WpOrg\Requests\Utility
CaseInsensitiveDictionary::offsetGet()
Get the value for the item
Method of the class: CaseInsensitiveDictionary{}
No Hooks.
Return
String|null
. Item value (null if the item key doesn't exist)
Usage
$CaseInsensitiveDictionary = new CaseInsensitiveDictionary(); $CaseInsensitiveDictionary->offsetGet( $offset );
- $offset(string) (required)
- Item key
CaseInsensitiveDictionary::offsetGet() CaseInsensitiveDictionary::offsetGet code WP 6.6.2
public function offsetGet($offset) { if (is_string($offset)) { $offset = strtolower($offset); } if (!isset($this->data[$offset])) { return null; } return $this->data[$offset]; }