Web EndMemo

PHP heredoc


Heredoc enables defining large blocks of text without escaping:
<?PHP
$str = <<<SOS
 <input name="test" style="font-size:16px;width:200px;height:22px"
 type="text" value="test heredoc">
SOS
echo "$str\n";
?>