Establecer PHP Variebe con JavaScript Loca Storage
$phpvariable = "<script>document.write(localStorage.getItem('local_variable'))</script>";
Precious Pygmy
$phpvariable = "<script>document.write(localStorage.getItem('local_variable'))</script>";