The ReflectionParameter class retrieves information about a function's or method's parameters.
<?php
class ReflectionParameter implements Reflector {
public string getName()
public ReflectionClass getClass()
public bool allowsNull()
public bool isPassedByReference()
public string toString()
}
?> |
To introspect function parameters, you will first have to create an instance of the ReflectionFunction or ReflectionMethod classes and then use their getParameters method to retrieve an array of parameters.