PHP output value of JS function
<pre><code>&lt;html&gt;
&lt;script type="text/javascript"&gt;
function show_alert()
{
  alert("I am an alert box!");
}
&lt;/script&gt;
&lt;body&gt;
&lt;?php
$x = 8;

if($x ==10){
  echo "Hi";
}
else{
  echo 'show_alert()';
}
?&gt;

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

<p>How do I get the echo to output the value of show_alert() ?</p>
