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

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.