Requests_Utility_CaseInsensitiveDictionary::offsetSet()
最后更新于:2021-11-26 04:09:17
Requests_Utility_CaseInsensitiveDictionary::offsetSet( string$key, string$value)Set the given item
参数
- $key
-
(string) (Required) Item name
- $value
-
(string) (Required) Item value
源文件
文件: gc-includes/Requests/Utility/CaseInsensitiveDictionary.php
public function offsetSet($key, $value) {
if ($key === null) {
throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset');
}
$key = strtolower($key);
$this->data[$key] = $value;
}