PHP-Heredoc用法:<<<EOFEOF;
2017-06-05 00:17
302 查看
Heredoc,用来输出大段的HTML和JavaScript
<<<EOF后面不能有空格。
EOF;末尾的结束符必须靠边,并且前面不能有空格和缩进符。
例如:
$mazey=<<<EOF <html> <head> <title>标题</title> </head> <body> 内容 </body> </html> EOF; echo $mazey;
相关文章推荐
- PHP-Heredoc用法:<<<EOFEOF;
- php中heredoc的使用方法(<<<EOF EOF)
- PHP heredoc 用法2
- php关于<<< 界定符 的用法
- PHP EOF(heredoc) 使用说明--定界符
- cat <<EOF用法
- php定界符<<<EOF讲解
- linux shell的here document用法(cat << EOF)
- linux shell 的here document 用法 (cat << EOF)
- 深入PHP EOF(heredoc)用法详解
- PHP中heredoc的用法(注意事项!)
- PHP EOF(heredoc)的使用方法
- PHP heredoc 用法
- <?php $sql = <<<EOF 。。。。EOF;?>
- <php>PDO用法一
- PHP <<EOF EOF的使用方法
- php定界符<<<EOF讲解
- php中heredoc和nowdoc的用法,少写echo
- linux shell的here document用法(cat << EOF)
- <?php $sql = <<<EOF 。。。。EOF;?>这种写法是什么意思