how to print $GLOBALS displaying in string?
<p>how to print $GLOBALS displaying in string?<br>
the is a very simpple demo bellow , sometimes I need to print $GLOBALS of a complex page , and there many html codes in vars, they display as html which I only want them to be string, how to do that?<br></p>

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

$html='&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt;';
print_r($GLOBALS);
</code></pre>

<p><img src="http://i.stack.imgur.com/OeBkj.png" alt="enter image description here"></p>
