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