HttpResponse::getHeader
(PECL pecl_http >= 0.12.0)
HttpResponse::getHeader — Get header
Описание
Get header(s) about to be sent.
Забележка: Възможно е това да не работи според очакваното със следните 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.
There are no user contributed notes for this page.
