摘要: php里new self() 一般在类内部使用,作用是对自身类实例化 <?php class test{ public function __construct(){ echo 'hello'; } public function test2(){ new self(); }}test::test2 阅读全文
posted @ 2018-10-06 15:09 254980080 阅读(619) 评论(0) 推荐(0) 编辑