What are PHP Super Globals?
A
Variables defined inside functions B
Built-in global arrays accessible anywhere in a script C
Arrays used only in classes D
Manually created global variables
Analysis & Theory
Super Globals are built-in arrays in PHP that are always accessible, regardless of scope.
Which Super Global is used to collect form data sent with the GET method?
A
$_POST B
$_GET C
$_REQUEST D
$_FORM
Analysis & Theory
`$_GET` is used to collect data sent through URL parameters (GET method).
Which Super Global is used to collect form data sent with the POST method?
A
$_GET B
$_POST C
$_REQUEST D
$_FORM
Analysis & Theory
`$_POST` is used to collect data sent via HTTP POST.
Which Super Global contains information about headers, paths, and script locations?
A
$_SERVER B
$_FILES C
$_ENV D
$_SESSION
Analysis & Theory
`$_SERVER` holds server and execution environment information like headers and paths.
Which Super Global is used to manage session variables?
A
$_SESSION B
$_COOKIE C
$_GET D
$_POST
Analysis & Theory
`$_SESSION` is used to store information about a user across different pages.
Which Super Global holds uploaded file information?
A
$_FILES B
$_SESSION C
$_ENV D
$_SERVER
Analysis & Theory
`$_FILES` contains information about files uploaded via HTTP POST.
What does the `$_COOKIE` Super Global do?
A
Stores user data on the server B
Stores user data on the client browser C
Stores server configurations D
Handles uploaded files
Analysis & Theory
`$_COOKIE` stores small amounts of data on the client side (browser).
Which Super Global is used to access environment variables?
A
$_ENV B
$_POST C
$_SERVER D
$_FILES
Analysis & Theory
`$_ENV` contains environment variables set in the server environment.
Which Super Global contains both `$_GET`, `$_POST`, and `$_COOKIE` data?
A
$_DATA B
$_FORM C
$_REQUEST D
$_SESSION
Analysis & Theory
`$_REQUEST` contains the contents of `$_GET`, `$_POST`, and `$_COOKIE`.
Are Super Globals accessible inside functions without using the `global` keyword?
A
No B
Yes C
Only $_SERVER D
Only $_POST and $_GET
Analysis & Theory
All Super Globals are accessible from any scope, including functions, without using `global`.