How to add Javascript code with PHP, at the bottom of the page?
<p>I want to add some js code with PHP, but it always print it at the top of the page ex.</p>

<pre><code>&lt;script&gt;
 sth();
&lt;/script&gt;
&lt;html&gt;
 &lt;body&gt;
 &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I want to make it:</p>

<pre><code>&lt;html&gt;
 &lt;body&gt;
  &lt;script&gt;
   sth();
  &lt;/script&gt;
 &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Is it possible?</p>
