Requests_Utility_CaseInsensitiveDictionary::offsetGet()

最后更新于:2021-11-26 04:09:08

Requests_Utility_CaseInsensitiveDictionary::offsetGet( string$key)

Get the value for the item

参数

$key

(string) (Required) Item key

响应

(string|null) Item value (null if offsetExists is false)

源文件

文件: gc-includes/Requests/Utility/CaseInsensitiveDictionary.php

	public function offsetGet($key) {
		$key = strtolower($key);
		if (!isset($this->data[$key])) {
			return null;
		}

		return $this->data[$key];
	}