[ create a new paste ] login | about

Link: http://codepad.org/O4zy120L    [ raw code | output | fork ]

PHP, pasted on Jan 4:
1
2
3
4
5
6
7
8
9
10
<?php
class SomeClass {
    public $value = <<<EOD
    Hello, world!
EOD;
}

$c = new SomeClass();
echo $c->value;
?>


Output:
1
2

Parse error: syntax error, unexpected T_START_HEREDOC on line 4


Create a new paste based on this one


Comments: