You have a PHP script and you need to access the information stored in a cookie. How would you do this?

  • $_COOKIE
  • $_REQUEST
  • $_SESSION
  • $_SERVER
To access the information stored in a cookie within a PHP script, you can use the $_COOKIE superglobal array. This array contains the names and values of the cookies sent by the client in the HTTP request. By accessing $_COOKIE['cookie_name'], you can retrieve the specific information stored in the cookie. See more at: http://php.net/manual/en/reserved.variables.cookies.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *