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

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

WBOY
WBOYOriginal
2016-06-23 14:04:19868browse

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


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


回复讨论(解决方案)

把 

 标记改为 <xmp> 标记  <p class="sougouAnswer">  谢谢斑竹,非常好用 </p></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