Stellen Sie die PHP -Variabel mit JavaScript Loca -Speicher fest

 $phpvariable = "<script>document.write(localStorage.getItem('local_variable'))</script>";
Precious Pygmy