HTTP 函数
在线手册:中文 英文
PHP手册

http_get_request_headers

(PECL pecl_http >= 0.10.0)

http_get_request_headersGet 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 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: Get request headers as array

用户评论:

ocus51 at gmail dot com (13-May-2008 03:36)

Keep in mind that this function replaces all "_" characters by "-" in headers names