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

    <script>
     sth();
    </script>
    <html>
     <body>
     </body>
    </html>


I want to make it:


    <html>
     <body>
      <script>
       sth();
      </script>
     </body>
    </html>

Is it possible?

Thanks in advance.

How to add Javascript code with PHP, at the bottom of the page?
===

I want to add some js code with PHP, but it always print it at the top of the page ex.

    <script>
     sth();
    </script>
    <html>
     <body>
     </body>
    </html>


I want to make it:


    <html>
     <body>
      <script>
       sth();
      </script>
     </body>
    </html>

Is it possible?

Thanks in advance.
