下面语句是一个论坛的代码;其中的<<<update是什么意思?看不懂,还有后面的update;能不能帮我解释一下。谢谢
$query =<<<update
update ${db_prefix}Member set hierarchy = $hierarchy, MP = $MP,EXP = $EXP, money = $money, post = $post1 where username = "${HTTP_SESSION_VARS['username']}"
update;
---------------------------------------------------------------
形如
<<< 标记
....
标记;
的语句是将其间的内容作为一个串进行处理的,如同"..."一般。但是虽然"..."允许多行,但若其间有"则需要转义附写作"。而<<<就不需要了。
这里的标记可以是任意的串,标记;必须顶格,即位于行首。
---------------------------------------------------------------
PHP Manual-en:
Another way to delimit strings is by using heredoc syntax ("<<<"). One should provide an identifier after <<<, then the string, and then the same identifier to close the quotation. 。。。