Access PHP variable in JavaScript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1808108/how-to-access-php-variables-in-javascript-or-jquery-rather-than-php-echo-vari">How to access PHP variables in JavaScript or jQuery rather than &lt;?php echo $variable ?&gt;</a>  </p>
</blockquote>



<p>Is there any way to get access to a PHP variable in JavaScript?</p>

<p>I have a variable, <code>$a</code>, in PHP and want to get its value in a JavaScript variable.</p>
