php8.5
Home/ Manual/ reflection / reflectionparameter/ ReflectionParameter::isDefaultValueConstant

ReflectionParameter::isDefaultValueConstant

PHP function Edit on GitHub ✎

(PHP 5 >= 5.4.6, PHP 7, PHP 8)

Returns whether the default value of this parameter is a constant

Description

ReflectionParameter::isDefaultValueConstant(): bool

Returns whether the default value of this parameter is a constant.

Parameters Parameters

Return Values

Returns true if the default value is constant, and false otherwise.

See Also

  • ReflectionParameter::getDefaultValueConstantName
  • ReflectionParameter::isDefaultValueAvailable

Source: reference/reflection/reflectionparameter/isdefaultvalueconstant.xml · from the official PHP manual (php/doc-en)