can php variables be defined inside a javascript code
<p>The code:</p>

<pre><code>if( 4 &gt; 1 ) {
    alert('ok');
    &lt;?php $mode = true;?&gt;
} else {
    alert('not-ok');
    &lt;?php $mode = false;?&gt;      
}
var_dump($mode);
</code></pre>

<p>This alerts OK, but the <code>var_damp()</code> shows <code>bool(false)</code></p>

<p>Why is var_dump showing that $mode is false?</p>
