class counter
{
static $c = 0;
return $c++;
}
// Create an instance of the Reflection_Function class
$func = new ReflectionClass('counter');
echo $func->getFileName();
PHP通过类名 怎么查找 这个类所在的文件 路径?利用PHP反射类
最新推荐文章于 2021-03-24 15:54:19 发布