Définir PHP Variabe avec le stockage JavaScript LOCA
$phpvariable = "<script>document.write(localStorage.getItem('local_variable'))</script>";
Precious Pygmy
$phpvariable = "<script>document.write(localStorage.getItem('local_variable'))</script>";