What is the purpose of the $_REQUEST variable in PHP?
-
A
To handle file uploads
-
B
To collect form data after submission
Correct answer
-
C
To store session variables
-
D
To access environment variables
Correct answer
B. To collect form data after submission
16 views
Explanation
$_REQUEST is a superglobal that collects data from $_GET, $_POST, and $_COOKIE.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ