|
ReflectionParameter::getDefaultValueGets default parameter value Description
public mixed ReflectionParameter::getDefaultValue()
Gets the default value of the parameter for any user-defined or internal function or method. If the parameter is not optional a ReflectionException will be thrown. ParametersThis function has no parameters. Return ValuesThe parameters default value. Changelog
Examples
Example #1 Getting default values of function parameters
The above example will output: Name: test Name: bar Default value: baz See Also
|