HTTP 函数
PHP Manual

http_request_method_name

(PECL pecl_http >= 0.10.0)

http_request_method_nameGet request method name

说明

string http_request_method_name ( int $method )

Get the literal string representation of a standard or registered request method.

参数

method

request method ID

返回值

Returns the request method name as string on success 或者在失败时返回 FALSE.


HTTP 函数
PHP Manual