When I do:
class MyClass {
public $copy = file_get_contents('somefile.mdown');
}
I get:
PHP Parse error: syntax error, unexpected '(', expecting ',' or ';' \
in /file.php on line 25
I'm new to classes in PHP, but not to OOP.
I can, of course, just do file_get_contents outside of the class and all is well. What's up with this?