0
A
回答
1
它被称为heredoc
语法:
echo <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon. no extra whitespace!
END;
+0
示例来自http://php.net/manual/en/function.echo.php – max 2014-09-10 09:59:28
相关问题
- 1. 插入<PHP回声<PHP如果
- 2. 呼应HTML回声<<< HTML
- 3. 回声阵列<<< END
- 4. 在回声中调用php函数<<< html?
- 5. PHP不会回声“<”从数据库
- 6. <?PHP和<?php
- 7. {构造函数}不是的<BaseClass>
- 8. PHP:<<< VS ob_start
- 9. PHP操作<<<
- 10. PHP表达<<< EOB
- 11. print <<< HTML in php?
- 12. <%$,<%@,<%=,<%#...这是怎么回事?
- 13. 让PHP回声<a href=link>
- 14. PHP 5.2不会回显<
- 15. C++:</p> <pre><code>private: int strLen; int dataLen; char* data; </code></pre> <p>和构造函数:一个构造函数
- 16. PHP - 评论里面<PHP的echo <<< EOF
- 17. 使用回声的意外EOF <<< EOT在if/elseif块中
- 18. 未知“<#”构建在JavaScript
- 19. 什么是PHP中的“<<< SQL”?
- 20. 构造函数ArrayAdapter <ArrayList <HashMap <String,String >>>(Context,int,ArrayList <HashMap <String,String >>)未定义
- 21. 的iostream使用<<来构造字符串
- 22. git“<<<<<<< HEAD”
- 23. “<<<<<<< HEAD”模板
- 24. AudioServicesPlaySystemSound知道什么时候声音使用</p> <pre><code>AudioServicesPlaySystemSound(soundID); </code></pre> <p>播放声音停止
- 25. 'std :: operator <<'operator <<'不匹配'std :: operator <<
- 26. 用于构造<X,Y>(C <Y>)和接口C <Y>
- 27. 使用<<< CON在PHP中
- 28. PHP使用$ var = <<< EOM
- 29. Php <<<是什么意思?
- 30. 什么手段<<<在PHP
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc它具有一种方式多行字符串,称为heredoc语法 – Steve 2014-09-10 09:55:59