|
ReflectionProperty::getDefaultValueプロパティで宣言されたデフォルト値を返す 説明
public mixed ReflectionProperty::getDefaultValue()
プロパティに明示または黙示的に宣言されているデフォルト値を取得します。 パラメータこの関数にはパラメータはありません。 戻り値
プロパティに何かしらデフォルト値が存在する場合( 例
例1 ReflectionProperty::getDefaultValue の例
<?php 上の例の出力は以下となります。 int(1) NULL int(0) NULL 参考
|