ReflectionParameter::isOptional
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.0.3, PHP 7, PHP 8)
Checks if optional
Description
ReflectionParameter::isOptional(): bool
Checks if the parameter is optional.
Parameters Parameters
Return Values
true if the parameter is optional, otherwise false
See Also
ReflectionParameter::getName