php字符串的简单有关问题

WBOY
Release: 2016-06-13 10:53:34
Original
836 people have browsed it

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










。。。。。。。


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

我写:


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


出错,求解。


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

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








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