다음 코드에서 http://us2.php.net/manual/en/language.oop5.properties.php은 무엇입니까? < < < 기호는 무엇을 의미합니까?PHP <<<는 무슨 뜻입니까?
<?php
class SimpleClass
{
// invalid property declarations:
public $var1 = 'hello ' . 'world';
public $var2 = <<<EOD
hello world
EOD;
public $var3 = 1+2;
public $var4 = self::myStaticMethod();
public $var5 = $myVar;
// valid property declarations:
public $var6 = myConstant;
public $var7 = array(true, false);
// This is allowed only in PHP 5.3.0 and later.
public $var8 = <<<'EOD'
hello world
EOD;
}
?>
코드가 잘못이다 -은'EOD는,'라인 들여 쓰기 수 없습니다. 연결된 페이지에는 해당 부분 들여 쓰기가 없습니다. – Amber