Requests_Utility_CaseInsensitiveDictionary::offsetGet()publicWP 1.0

Get the value for the item

Метод класса: Requests_Utility_CaseInsensitiveDictionary{}

Хуков нет.

Возвращает

Строку|null. Item value (null if offsetExists is false)

Использование

$Requests_Utility_CaseInsensitiveDictionary = new Requests_Utility_CaseInsensitiveDictionary();
$Requests_Utility_CaseInsensitiveDictionary->offsetGet( $key );
$key(строка) (обязательный)
Item key

Код Requests_Utility_CaseInsensitiveDictionary::offsetGet() WP 6.1.1

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

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