How to access variable declared in PHP by jquery
<p>For example i declare some variable like test in server side of my PHP</p>

<pre><code>echo('var test = ' . json_encode($abc));
</code></pre>

<p>Now i want to use this test variable in Jquery ..how can i use it?</p>

<p>What function do i need to use it?</p>

<p>For Example i have:</p>

<p>I have back end PHP code something like this</p>

<pre><code>$abc = no
echo "var test= ".json_encode($abc);
</code></pre>

<p>I want jquery to do the following action(client side)</p>

<pre><code>$(document).ready(function(){
function(json) { 
if($abc == no )//this i what i want to be achieved

  }
}
</code></pre>
