I get this error:
Parse error: syntax error, unexpected '.', Pending ',' or ';' in / var / (...) / config.php on line 5
With this (simplified) code:
<?php
class Config
{
public static $somevar = "Date: " . date('Y');
}
?>
I thought this was valid php, but I donβt think ... what am I doing wrong here? Thank!
source
share