摘要: 1 方法一: 2 class foo { 3 static public function test() { 4 var_dump(get_called_class()); 5 } 6 } 7 8 class bar extends foo { 9 } 10 11 foo::test(); 12 bar::test(); 13 14 输出:... 阅读全文
posted @ 2016-08-05 10:43 shijiu520 阅读(2494) 评论(0) 推荐(0)