您好,欢迎访问一九零五行业门户网

PHP之static

static是属于类本身的,是实例化对象所共有的
使用形式:
static $val;
static function func(){}
调用形式:
类名::$val;
类名::func();
temp.; echo'static val:'.sta::$type.; echo'static val:'.$me::$type.; //静态方法中亦不可调用普通方法 }}echo'sta:'.sta::$type.;echo sta::stat();$a = new sta();echo'a:'.$a::$type.;$b = new sta();$a::$type = 200;echo'b:'.$b::$type.;
').addclass('pre-numbering').hide(); $(this).addclass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadein(1700); }); }); 以上就介绍了php之static,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
其它类似信息

推荐信息