WpOrg\Requests\Utility
CaseInsensitiveDictionary::offsetSet
Set the given item
Метод класса: CaseInsensitiveDictionary{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$CaseInsensitiveDictionary = new CaseInsensitiveDictionary(); $CaseInsensitiveDictionary->offsetSet( $offset, $value );
- $offset(строка) (обязательный)
- Item name.
- $value(строка) (обязательный)
- Item value.
Код CaseInsensitiveDictionary::offsetSet() CaseInsensitiveDictionary::offsetSet WP 6.9.1
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;
}