Requests_Response_Headers::getValues

Advertisement

Summery Summery

Get all values for a given header

Syntax Syntax

Requests_Response_Headers::getValues( string $key )

Parameters Parameters

$key

(Required)

Return Return

(array) Header values

Source 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];
	}

Advertisement

Advertisement

Leave a Reply