$_COOKIE
$_COOKIE
HTTP Cookies
An associative of variables passed to the current script
via HTTP Cookies.
array
Voorbeeld: example
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
Assuming the "name" cookie has been set earlier
Hello Hannes!
setcookieHandling external variablesThe filter extension