php reflection methods include: 1. [$reflectMethod=new ReflectionMethod(
)] Pass in the method name string; 2. [$parameters=$reflectMethod->getParameters()] Get parameter name.
##php reflection methods are:
(1)$reflectMethod = new ReflectionMethod(<方法名>);
$parameters = $reflectMethod->getParameters();
$name = $parameters->getName();
$reflectMethod->invokeArgs(<类实例>,<执行该方法所需参数数组>);
Related learning recommendations:php programming (video)
The above is the detailed content of What are the reflection methods in php. For more information, please follow other related articles on the PHP Chinese website!