Ben ne zaman:
class MyClass {
public $copy = file_get_contents('somefile.mdown');
}
Alıyorum:
PHP Parse error: syntax error, unexpected '(', expecting ',' or ';' \
in /file.php on line 25
Ben PHP sınıflarına yeni değilim, ama OOP değil.
Ben, tabii, sadece sınıfın dışında file_get_contents yapabilir ve tüm iyi. Bu ne kadar oldu?