title: How do I embed PHP code in JavaScript?
body: <p>How can we use PHP code in JavaScript?</p>
  
  <p>Like</p>
  
  <pre><code>function jst()
  {
      var i = 0;
      i = &lt;?php echo 35; ?&gt;
      alert(i);
  }
  </code></pre>
  
  <p>Please suggest a better way.</p>