W3cubDocs

/WordPress

Requests_Response_Headers::getValues( string $key )

Get all values for a given header

Parameters

$key

(string) (Required)

Return

(array) Header values

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

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_response_headers/getvalues