Uses
Uses | Description |
---|---|
wp-includes/Requests/Response/Headers.php: Requests_Response_Headers::flatten() | Flattens a value into a string |
Get the given header
Unlike self::getValues(), this returns a string. If there are multiple values, it concatenates them with a comma as per RFC2616.
Avoid using this where commas may be used unquoted in values, such as Set-Cookie headers.
(string) (Required)
(string) Header value
File: wp-includes/Requests/Response/Headers.php
public function offsetGet($key) { $key = strtolower($key); if (!isset($this->data[$key])) { return null; } return $this->flatten($this->data[$key]); }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_response_headers/offsetget