phpday 2027 - Call for Papers

ReflectionParameter::isOptional

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

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

説明

public function ReflectionParameter::isOptional(): bool

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

パラメータ

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

戻り値

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

参考

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top