PHP 的 new static 和 new self
摘要:
下面我们举个例子: new self 这里面注意这一行 get_class(Son::getStatic()); 返回的是 Son 这个 class, 可以总结如下: self 返回的是 new self 中关键字 new 所在的类中,比如这里例子的 : 始终返回 Father。 new stati 阅读全文
posted @ 2019-10-08 11:50 头大的冯冯 阅读(167) 评论(0) 推荐(0) 编辑