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.

참고

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top