Requests_Response_Headers::getValues() WordPress Method

The Requests_Response_Headers::getValues() method is used to get an array of all header values from a WordPress HTTP response.

Requests_Response_Headers::getValues( string $key ) #

Get all values for a given header


Parameters

$key

(string)(Required)


Top ↑

Return

(array|null) Header values


Top ↑

Source

File: wp-includes/Requests/Response/Headers.php

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

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.