Constant Scope
| From: | Adrian Cid Almaguer | Date: | Mon, 27 Feb 2006 03:29:12 +0000 |
| Subject: | Constant Scope | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231121@lists.php.net to get a copy of this message | ||
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.