Home  >  Article  >  Backend Development  >  打印全局变量如何让有html代码的变量显示字符串而不是html解析显示

打印全局变量如何让有html代码的变量显示字符串而不是html解析显示

WBOY
WBOYOriginal
2016-06-13 12:50:10852browse

打印全局变量怎么让有html代码的变量显示字符串而不是html解析显示?
打印全局变量怎么让有html代码的变量显示字符串而不是html解析显示?


<br />
<pre class="brush:php;toolbar:false"><br />
<?php<br />
<br />
$html='<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>';<br />
print_r($GLOBALS);<br />
<br />


------解决方案--------------------
把 
 标记改为 <xmp> 标记 <div class="clear">
                 
              
              
        
            </div></xmp>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn