Requests_Response_Headers::offsetGet( string $key ): string|null

In this article

Get the given header

Description

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.

Parameters

$keystringrequired

Return

string|null Header value

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.