How to output JavaScript with PHP
<p>I am new to PHP. I need to output the following JavaScript with PHP. This is my code:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;
&lt;?php

echo "&lt;script type="text/javascript"&gt;";
echo "document.write("Hello World!")";
echo "&lt;/script&gt;";

?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>But it's showing the error:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/html/workbench/person/script.php on line 4</p>
</blockquote>

<p>Can anyone please help? I also need some simple tutorials on how to use PHP, HTML and JavaScript for an application.</p>
