PHP Syntax Variables Scope Superglobal $_COOKIE

 

- Info:

- $_COOKIE superglobal array contains information passed into the script through HTTP cookies.

- Such cookies are typically set by a previously executed PHP script through the PHP function setcookie().

- For example, suppose that you use setcookie() to store a cookie named example.com with the value ab2213.

- You could later retrieve that value by calling $_COOKIE["example.com"].

 

- Example:

- Create PHP Console Application Test.php.

 

Test.html