Should I be able to do this:

class X
  const FOO = 'foo';
  const FOOBAR = X::FOO . 'bar';



Because I can't. I get "syntax error, unexpected '.', expecting ',' or
';'". I assume this is because the constants are like statics which
can't be initialised by functions etc. but is there really any logic
behind this?

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to