PHP 8.3.4 Released!

ReflectionParameter::isOptional

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

ReflectionParameter::isOptional省略可能であるかどうかを調べる

説明

public ReflectionParameter::isOptional(): bool

パラメータが省略可能であるかどうかを調べます。

パラメータ

この関数にはパラメータはありません。

戻り値

省略可能である場合に true、それ以外の場合に false を返します。

参考

add a note

User Contributed Notes

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