2019独角兽企业重金招聘Python工程师标准>>>
$className = 'MyTestClass'; if (!class_exists($className)) { return null; } $reflectionClass = new ReflectionClass($className); $classInstance = $reflectionClass->newInstance(); return $classInstance
2019独角兽企业重金招聘Python工程师标准>>>
$className = 'MyTestClass'; if (!class_exists($className)) { return null; } $reflectionClass = new ReflectionClass($className); $classInstance = $reflectionClass->newInstance(); return $classInstance
转载于:https://my.oschina.net/u/214052/blog/912824