Problem Statement
Which superglobal retrieves cookie data in PHP?
Explanation
The $_COOKIE superglobal is used to access cookie values that have been sent from the browser back to the server.
Code Solution
SolutionRead Only
echo $_COOKIE['user'];
Practice Sets
This question appears in the following practice sets:
