| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
ReflectionClass::getDefaultProperties(PHP 5, PHP 7) ReflectionClass::getDefaultProperties — デフォルトプロパティを取得する 説明
public array ReflectionClass::getDefaultProperties
( void
)
クラスのデフォルトプロパティ (継承したプロパティを含む) を取得します。
パラメータこの関数にはパラメータはありません。 返り値
デフォルトプロパティの配列を返します。プロパティ名が配列のキー、
そしてそのプロパティのデフォルト値が配列の値 (デフォルト値が存在しない場合は 例
例1 ReflectionClass::getDefaultProperties() の例
<?php 上の例の出力は以下となります。 array(5) { ["staticProperty"]=> string(14) "staticProperty" ["property"]=> string(15) "propertyDefault" ["privateProperty"]=> string(22) "privatePropertyDefault" ["defaultlessProperty"]=> NULL ["inheritedProperty"]=> string(16) "inheritedDefault" } 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「ReflectionClass::getDefaultProperties - デフォルトプロパティを取得する」をGoogle検索
|