使用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>";
转载于:https://www.cnblogs.com/blueskycc/p/5478085.html