I need to change the value of a PHP variable to JavaScript code.
The value of the PHP variable has to be something out of (JavaScript) localStorage.
So it is something like this.
$variable = localStorage.anameofalocalstorage; //The localstorage part is js
How can I do this?