Consistent implementation of PHP class constants (arrays not allowed) I'm currently writing a class:

final class MyTestClass {
  const URL = 'http://www.example.org';
  private static $MY_ARRAY = array('...');

  // since this is not allowed
  // const MY_ARRAY = array('...');
}


So my question is whether I should make URL a private static variable, too?
These values are constant and are only used in the class itself.
See PHP Constants Containing Arrays? .  I think both are valid and also your current approach is fine. It's only important that you stick with one solution in your whole project.

Personally I think I would stay with your current solution.