heredoc和nowdoc是什么,怎么用,他们之间的区别是什么,下面来为您介绍一下php7中的heredoc和nowdoc用法和区别。
$str=>>>EOF
<H1>WWW.96NET.COM.CN</H1>
<P align="center">这是heredoc</P>
EOF;
heredoc equivalent double quotes, single quotes nowdoc equivalent, so the use heredoc no need to worry about which character, does not need to add complex transfer image as a string of characters.