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