http_get_request_headers

(PECL)

http_get_request_headers -- Get request headers as array

说明

array http_get_request_headers ( void )

Get a list of incoming HTTP headers.

参数

返回值

Returns an associative array of incoming request headers.

参见

http_get_request_body()
http_get_request_body_stream()
the HttpResponse class if you are using PHP-5.1 and above