本文共 236 字,大约阅读时间需要 1 分钟。
PHP4新增加的heredoc语法(<<<): <?php echo <<<_html 第一行 第二行 第三行 _html; ?> 只要保证两个标记中没有出现和它们名称相同的文字就行(这里就是_html)
<?php $name = "w3pop.com"; echo <<<_html 第一行!<br /> 第二行!<br /> 第三行!<br /> $name _html; ?>
转载地址:http://xbpcb.baihongyu.com/