Blogger Information
Blog 5
fans 0
comment 0
visits 5035
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php中::是什么意思?
phpcn_u10161的博客
Original
740 people have browsed it

类中 静态方法和静态属性的引用方法
例如
class Test{
    public static $test = 1;
   public static function test(){
   }
}

可以不用实例化对象直接使用 Test::$test 来取得$test属性的值
静态方法调用也同理Test::test(); 直接调用静态方法test

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post