Multiple choice technology web technology

This array contains query parameters.

  1. $_GET
  2. $_POSTS
  3. $_GETS
  4. All the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

$_GET is the PHP superglobal array that contains query parameters passed through the URL after the ? character. The other options are wrong - $_POST (not $_POSTS) contains POST request data, and $_GETS doesn't exist as a PHP superglobal. Query parameters in URLs are automatically parsed into $_GET.

AI explanation

In PHP, $_GET is the superglobal array that holds the key/value pairs sent as query string parameters in the URL of an HTTP GET request. $_POSTS and $_GETS are not real PHP superglobals (the correct POST equivalent is $_POST), so $_GET is the only valid option here.