What is the $_REQUEST superglobal in PHP?

  • A superglobal array that combines the values of $_GET, $_POST, and $_COOKIE.
  • A superglobal array that stores user input from form submissions.
  • A superglobal array that holds session data.
  • A superglobal array that contains server-related information.
The $_REQUEST superglobal in PHP is an associative array that combines the values of $_GET, $_POST, and $_COOKIE superglobals. It provides a convenient way to access user input data regardless of the request method (GET or POST) or the location of the data (query string or form submission). By using the $_REQUEST superglobal, you can retrieve user input from various sources in a unified manner. Learn more: https://www.php.net/manual/en/reserved.variables.request.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *