$_COOKIE
PHP function
Edit on GitHub ✎
HTTP Cookies
Description
An associative array of variables passed to the current script via HTTP Cookies.
Examples
$_COOKIE example
php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>Assuming the "name" cookie has been set earlier
The above example will output something similar to:
output
Hello Hannes!