php[world] 2019 — 25 years of PHP

ReflectionParameter::isOptional

(PHP 5 >= 5.0.3, PHP 7)

ReflectionParameter::isOptionalChecks if optional

Description

public ReflectionParameter::isOptional ( void ) : bool

Checks if the parameter is optional.

Parameters

This function has no parameters.

Return Values

TRUE if the parameter is optional, otherwise FALSE

See Also

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top