consider this php and javascript code :
<?php $_COOKIE['test']='123'; ?>
<script>console.log(document.cookie);</script>
then what i see in console is : __utma=111872281.291759993.1444771465.1445374822.1445436904.4; __utmz=111872281.1444771465.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=8572f606897b1732c31a25dee29ca077
i want to use the value of $_COOKIE['test'] in javascript ... but this strange string is not useful for me . how can i do that ?