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

WBOY
Release: 2016-06-13 12:50:10
Original
851 people have browsed it

打印全局变量怎么让有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 />
Copy after login


------解决方案--------------------
把 
 标记改为 <xmp> 标记 <div class="clear">
                 
              
              
        
            </div></xmp>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template