21、PHP 映射类

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

$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

你可能感兴趣的:(php,python)