php反射机制获取未知类的详细信息
使用ReflectionClass就可以获取未知类的详细信息
demo:
require("hello.php"); $class = new ReflectionClass("hello");//参数为类名 echo "<pre>".$class."</pre>";
☜☞梦想总是要有的,万一实现了呢☜☞
使用ReflectionClass就可以获取未知类的详细信息
demo:
require("hello.php"); $class = new ReflectionClass("hello");//参数为类名 echo "<pre>".$class."</pre>";