PHP has two object operators.
The first, ->
, is used when you want to call a method on an instance or access an instance property.
The second, ::
, is used when you want to call a static
method, access a static
variable, or call a parent class's version of a method within a child class.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…