HttpResponse
在线手册:中文  英文

HttpResponse::getHeader

(PECL pecl_http >= 0.12.0)

HttpResponse::getHeaderGet header

说明

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

Get header(s) about to be sent.

Note:

下列 SAPI 可能不能正常的工作: 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.

参见


HttpResponse
在线手册:中文  英文
易百教程