title: Get localStorage value into php
body: <p>I have a variable set in localStorage and I want to get it into php. When php is executed the value is already set in local storage, but how should I get into php?</p>
  
  <p>I tried something like this:</p>
  
  <pre><code>  $myvar = "&lt;script&gt; localStorage.getItem('productinfo')['s3_url']&lt;/script&gt;";
  </code></pre>
  
  <p>But this for some reasons gives a <code>Uncaught SyntaxError: missing ) after argument list</code></p>
  
  <p>How should I approach this? Thanks.</p>