$sth = xml;
想问问这种写法对么?还有这种方式叫什么名字呢?
多谢各位!
回复内容: $sth = xml;
想问问这种写法对么?还有这种方式叫什么名字呢?
多谢各位!
heredoc结构
http://cn.php.net/manual/zh/language....
bash里头也有类似的写法,here document.
就是去读下面的字符,有啥读啥,像cdata的样子。
heredoc, 最近又出一个nowdoc 搜索吧。
这个叫定界符构建字符串
$sth =
xml;
就是这个字符串以结束标记必须换行,顶格写。