The HttpResponse
PHP Manual

HttpResponse::getHeader

(PECL pecl_http:0.12.0-1.5.5)

HttpResponse::getHeaderGet header

Описание

static mixed HttpResponse::getHeader ([ string $name ] )

Get header(s) about to be sent.

Замечание: This may not work as expected with the following SAPI(s): Apache2 w/PHP < 5.1.3.

Список параметров

name

specifies the name of the header to read; if empty or omitted, an associative array with all headers will be returned

Возвращаемые значения

Returns either a string containing the value of the header matching name, FALSE on failure, or an associative array with all headers.

Смотрите также


The HttpResponse
PHP Manual