HttpRequest
PHP Manual

HttpRequest::getMethod

(PECL pecl_http >= 0.10.0)

HttpRequest::getMethodGet method

说明

public int HttpRequest::getMethod ( void )

Get the previously set request method.

返回值

Returns the currently set request method.


HttpRequest
PHP Manual