class My_class { const STATUS_ERROR = 0; const STATUS_OK = 1; const DB_TABLE = TABLE_PREFIX . 'class_table'; }
The two status consts work fine and can be accessed within class methods as self::STATUS_ERROR
and self::STATUS_OK
just fine.
The issue is one of how to stop the following error being thrown when I try to define the third constant.
Parse error: syntax error, unexpected '.', expecting ',' or ';' in /home/sub/sub/directory/script.php