new static

今天研究了一下thinkphp orm的底层,想找找哪里去设定要操作的数据表,结果发现里面有一个new static的东西。 它还有个兄弟,new self,那么它们究竟是干什么用的呢,举个🌰 class A { public static function get_self() { return new self(); } public static function get_static()
相关文章
相关标签/搜索