可能重复: 引用-这个符号在PHP中意味着什么? What is the name for the “<<<” operator?
我可以推断这是做什么,但我需要知道如何,并可能找到一些文件。标题<<<CSS中的表达式似乎设置了要插入到模板中的css块。但是,没有从这些文本字符串中删除<<<CSS的函数,但它们却没有出现。这使我相信,<<<不仅仅是一个随机标记,而且具有特殊的PHP含义。请帮帮忙。
if(!empty($background['header_image'])){
$header_image = <<<CSS
background-image: url('{$background['header_image']}');
background-repeat: {$background['header_repeat']};
background-position: top {$background['header_position_x']};
background-attachment: scroll;
CSS;`发布于 2012-02-02 21:04:20
这叫这里医生。见PHP文档。
这是一种将多行文本赋给变量的简单方法。
发布于 2012-02-02 21:05:04
它被称为“http://www.tuxradar.com/practicalphp/2/6/3”
基本上,它是“在<<
https://stackoverflow.com/questions/9119956
复制相似问题