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

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

WBOY
Release: 2016-06-23 14:04:19
Original
858 people have browsed it

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


回复讨论(解决方案)

把 

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