title: How can I concatenate a constant and a variable and store it in a class constant with PHP?
body: <pre>class My_class
  {
      const STATUS_ERROR = 0;
      const STATUS_OK = 1;
      const DB_TABLE = TABLE_PREFIX . 'class_table';
  }</pre>
  
  <p>The two status consts work fine and can be accessed within class methods as <code>self::STATUS_ERROR</code> and <code>self::STATUS_OK</code> just fine.</p>
  
  <p>The issue is one of how to stop the following error being thrown when I try to define the third constant.</p>
  
  <p><code>Parse error: syntax error, unexpected '.', expecting ',' or ';' in /home/sub/sub/directory/script.php</code></p>