HttpResponse::getHeader

(no version information, might be only in CVS)

HttpResponse::getHeader -- Get header

Beskrivelse

staticmixed HttpResponse::getHeader ( [string name] )

Get header(s) about to be sent.

Bemærk: This may not work as expected with the following SAPI(s): Apache2 w/PHP < 5.1.3.

Parameterliste

name

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

Returneringsværdier

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

Se også

HttpResponse::setHeader()