为了账号安全,请及时绑定邮箱和手机立即绑定

吐槽here doc

不知道heredoc结构为什么不介绍一下。吐槽。。。   格式$heredoc = <<<heredocs    这里面是字符串内容      heredoc;   echo $heredoc;

正在回答

代码语言

2 回答

$str_string3=<<<EOT

<h1>我的午餐</h1>

<font color="blue">半只烤鸡</font>

<font color="red">一杯酸奶</font>

<a href="1.html"><font color="yellow">查看更多</font></a>

EOT;

echo $str_string3


1 回复 有任何疑惑可以回复我~

支持,少讲了一种。

0 回复 有任何疑惑可以回复我~
#1

品茗见南山

$str_string3=<<<EOT <h1>我的午餐</h1> <font color="blue">半只烤鸡</font> <font color="red">一杯酸奶</font> <a href="1.html"><font color="yellow">查看更多</font></a> EOT; echo $str_string3 就是这种
2016-01-05 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

吐槽here doc

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号