Constant Scope

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can I give visibility to a class constant.

something like this

class foo
{
  private const = "aaa";
  protected const = "bbb";
  public const = "ccc";
}

I dont want the user of my class can access to the constant.
and I cant use public static fields because I dont want the content can be
modified even inside the class.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux