PHP new self()和new static()的区别探究 2.无论是new static()还是new self(),都是new了一个新的对象。打印的结果为: Father Father 到这里,貌似new self()和new static()是没有区别的。 igogo00 2020-06-28 13:19:25
浅谈PHP中new self()和new static()的区别 2.无论是new static()还是new self(),都是new了一个新的对象。打印的结果为:FatherFather 到这里,貌似new self()和new static()是没有区别的。 phpsir 2017-08-11 06:58:10