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