title: PHP Constants in Classes
body: <p>I have the following code sample, which produces an error with the included constant when it is run. Could someone please show me where this is going wrong?</p>
  
  <pre><code>class Template {
    private $headers = "&lt;link rel=\"stylesheet\" type=\"text/css\" 
    href=\"" . ROOT . "system/stylesheets/universal.css\" /&gt;";
  
    ... More variables and methods
  }
  </code></pre>
  
  <p>Here is the error I receive. I am sure that the ROOT constant is defined, just outside of this class:</p>
  
  <pre><code>Parse error: syntax error, unexpected '.', expecting ',' or ';' in &lt;page.php&gt; on line &lt;line number&gt;
  </code></pre>
  
  <p>Thank you for your time,<br>
  spryno724</p>