title: How can I store JavaScript variable output into a PHP variable?
body: <p>I have the following code in JavaScript:</p>
  
  <pre><code>&lt;script&gt;
  var a="Hello";
  &lt;/script&gt;
  </code></pre>
  
  <p>PHP Code:-</p>
  
  <pre><code>&lt;?php 
  $variable = // I want the above JavaScript variable 'a' value to be stored here
  ?&gt;
  </code></pre>
  
  <p>Note : I don't want it in a form submission. I have some logic in JavaScript and I want to use it in the same PHP page... Please let me know how I can do this.</p>