WpOrg\Requests\Utility
CaseInsensitiveDictionary::offsetSet()
Set the given item
Method of the class: CaseInsensitiveDictionary{}
No Hooks.
Return
null
. Nothing (null).
Usage
$CaseInsensitiveDictionary = new CaseInsensitiveDictionary(); $CaseInsensitiveDictionary->offsetSet( $offset, $value );
- $offset(string) (required)
- Item name
- $value(string) (required)
- Item value
CaseInsensitiveDictionary::offsetSet() CaseInsensitiveDictionary::offsetSet code WP 6.6.2
public function offsetSet($offset, $value) { if ($offset === null) { throw new Exception('Object is a dictionary, not a list', 'invalidset'); } if (is_string($offset)) { $offset = strtolower($offset); } $this->data[$offset] = $value; }