how to start a cookie in php code example
Example 1: get a cookie in php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
Example 2: php cookie
setcookie ('name', 'value', $expiresOn, $path, $domain, $secure, $httponly)
Example 3: cookies php syntax
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");