get php cookie in javascript code example
Example 1: get a cookie in php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
Example 2: retrieving a cookie in php
$cookiename = $_COOKIE['COOKIE ID']
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
$cookiename = $_COOKIE['COOKIE ID']