What do two colons mean in PHP?

前端 未结 5 1521
一个人的身影
一个人的身影 2020-12-04 18:02

I don\'t know what it\'s doing when we have this situation:

Foo::Bar

It looks like a path.

5条回答
  •  -上瘾入骨i
    2020-12-04 18:40

    The Scope Resolution Operator(::)the double colon, is a token that allows access to static, constant, and overridden properties or methods of a class.

    
    

提交回复
热议问题