|
ReflectionParameter::getDefaultValueConstantNameReturns the default value's constant name if default value is constant or null Description
public stringnull ReflectionParameter::getDefaultValueConstantName()
Returns the default value's constant name of the parameter of any user-defined or internal function or method, if default value is constant or null. If the parameter is not optional a ReflectionException will be thrown. ParametersThis function has no parameters. Return Values
Returns string on success or Changelog
Examples
Example #1 Getting default values' constant names of function parameters
The above example will output: Name: test Name: bar Default value: PHP_INT_MIN See Also
|