HttpMessage
PHP 手册

HttpMessage::getHeader

(PECL pecl_http >= 1.1.0)

HttpMessage::getHeaderGet header

说明

public string HttpMessage::getHeader ( string $header )

Get message header.

参数

header

header name

返回值

Returns the header value on success or NULL if the header does not exist.


HttpMessage
PHP 手册