11
There's no such thing as a "PHP cookie" or a "javascript cookie". There's just cookies, which you can access from PHP and Javascript. In JS, you'd use document.cookie to access the raw cookie data. There's plenty of libraries which give you finer-grained access as well,
You can access your cookies with document.cookie Check this link: http://www.w3schools.com/js/js_cookies.asp
Since PHP is a server side script and JavaScript runs in the browser, you'll need to send the cookie to the browser in a hidden form variable, or use an AJAX call from JavaScript to get it from the server.