ReflectionParameter (class)

The ReflectionParameter class

Introduction

(PHP 5, PHP 7)

The ReflectionParameter class retrieves information about function's or method's parameters.

To introspect function parameters, first create an instance of the ReflectionFunction or ReflectionMethod classes and then use their ReflectionFunctionAbstract::getParameters() method to retrieve an array of parameters.

Class synopsis

ReflectionParameter 登录查看完整内容