ReflectionParameter::getDefaultValueConstantName

( excerpt from php.net/manual/en/reflectionparameter.getdefaultvalueconstantname.php )

public function getDefaultValueConstantName();

Returns the default value's constant name if default value is constant or null

Returns

  • mixed - Returns string on success or NULL on failure.