Which of the following superglobals can you use to fetch a cookie from the client's side?
Each correct answer represents a complete solution. Choose all that apply.
[4153,4156]
Correct:
--> $_REQUEST
--> $_COOKIE
Explanation: Answer options D and A are correct.
You can either use $_COOKIE or $_REQUEST superglobals to fetch a cookie from the client's side. The $_REQUEST array can be used to fetch get, post, and cookie all three types of data.
Answer options B and C are incorrect. $_GET and $_POST are superglobal arrays used to retrieve, get, and post data respectively.