: This article mainly introduces php: What does it mean? For php instructions and applications, if you are interested in PHP tutorials, refer. 1. in the class
Static methodAnd
Static attributesReference Method
For example
Class Test {
Public static $ test = 1;
Public static function test (){
}
}
It does not need to be instantiated.
ObjectUse Test: $ test directly to obtain the value of the $ test attribute.
Static methodThe same is true for calling Test: test ();Static methodTest
2. two colons (: :) are static references to methods in the class.
That is, it does not need to be instantiated.Object, Directly reference the methods in the class through the class name
The above introduces php: What does it mean? About php: description and application, including some content, hope to be helpful to friends who are interested in PHP tutorials.