Access control in PHP5 const property
Is it possible to do something like this?:
class MyClass {
private const MYCONST = 'JUMP';
}
My point is, can consts have "access control" (public, priva开发者_运维知识库te, protected)?
It's not possible. Class constants are always globally accessible.
精彩评论