Call a JavaScript function depending on the value of a PHP variable
<p>I am passing a variable via the URL as <code>var=5</code> to <code>urlrun.php</code> (like <code>urlrun.php?var=5</code>). There is a JavaScript function called <code>testrun</code> in <code>urlrun.php</code>.</p>

<p><strong>Is there a way to call that JavaScript function depending on the value of that variable (<code>var</code>) passed through the URL?</strong></p>

<p>For example, <code>if($_GET['var']==5)</code>, I need to call that JavaScript function.</p>
