What is the $_GET superglobal in PHP?

  • It is a superglobal array used to retrieve data sent via an HTML form using the GET method.
  • It is a superglobal array used to retrieve data sent via an HTML form using the POST method.
  • It is a superglobal array used to retrieve data sent in the URL's query string using the GET method.
  • It is a superglobal array used to retrieve data sent in the URL's query string using the POST method.
The $_GET superglobal in PHP is an associative array that is used to retrieve data sent in the URL's query string using the GET method. When data is sent to the server using the GET method, the values are appended to the URL as key-value pairs. The $_GET superglobal allows access to these values by using the corresponding key as an index. Learn more: https://www.php.net/manual/en/reserved.variables.get.php
Add your answer
Loading...

Leave a comment

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