Home  >  Article  >  Backend Development  >  php字符串的简单有关问题

php字符串的简单有关问题

WBOY
WBOYOriginal
2016-06-13 13:08:07733browse

php字符串的简单问题
现在有很长的一串html代码,比如:










。。。。。。。


我想把它赋值给一个php变量,该怎么写?

我写:


$a = 。。。(上述的html代码)
?>


出错,求解。


不要说把这段html转义,因为很长,不太可能一个一个字符转义

------解决方案--------------------
$a =








......
TXT; //这里必须顶格写
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