What does "<<<ST" mean in PHP?
Possible Duplicate:
PHP <<<EOB
I saw this below piece of code in one php file , can some one explain what <<< st means.?
$status['caption']=<<<ST
ST;
Ps : I really cant google it , trust me :D
这被称为heredoc字符串。
That is a way to store multiline strings. (Called Heredoc Syntax)
$string = <<<IDENTIFIER
IDENTIFIER;
All the lines in between are stored as string. Used for long walls of text. It is described here .
It is called the Heredoc syntax: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
It can be helpful for multiline strings and strings containing both double and single quotes. As double quotes Heredoc interprets many escape sequences for special characters.
链接地址: http://www.djcxy.com/p/58442.html上一篇: 什么是“<<<”运算符的名称?
下一篇: “<<< ST”在PHP中意味着什么?