I am trying to reference a public variable from inside a class.
class Settings{
public $CompanyName = "MyWebsite"; // company name
public $PageTitle = "$this->CompanyName - big website"; // E.g. My Big Website
}
But this gives back a parse error:
Parse error: parse error
What is the correct way of doing this?