title: How to display a php variable into html
body: <p>I just want to know how can I display a javascript variable into html?</p>
  
  <p>Below is my php code:</p>
  
  <pre><code>var duration = &lt;? echo $postduration; ?&gt;;
  </code></pre>
  
  <p>(The variable above uses php to retrieve a php variable)</p>
  
  <p>Thank you</p>