2014-12-27 43 views

回答

1
$rc = new \ReflectionClass('CLASSPATH OR INSTANCE'); 
var_dump($rc->getNamespaceName()); 

注:空字符串意味着全局命名空間

相關問題