CI_Input::method()

method([$upper = FALSE])

Parameters:
  • $upper (bool) – Whether to return the request method name in upper or lower case
Returns:

HTTP request method

Return type:

string

Returns the $_SERVER['REQUEST_METHOD'], with the option to set it in uppercase or lowercase.

echo $this->input->method(TRUE); // Outputs: POST
echo $this->input->method(FALSE); // Outputs: post
echo $this->input->method(); // Outputs: post
doc_CodeIgniter
2016-10-15 16:31:39
Comments
Leave a Comment

Please login to continue.