ReflectionClass::getConstants
定数を取得する
&reftitle.description;
public arrayReflectionClass::getConstants
intnullfilter&null;
アクセス権にかかわらず、クラスで定義されているすべての定数を取得します。
&reftitle.parameters;
filter
オプションのフィルタで、取得したい定数の型を絞り込みます。
ReflectionClassConstant クラスの定数
で設定し、デフォルトではすべての定数を取得します。
&reftitle.returnvalues;
定数の配列を返します。
キーは名前を保持し、値は定数の値を保持します。
&reftitle.changelog;
&Version;
&Description;
8.0.0
filter が追加されました。
&reftitle.seealso;
ReflectionClass::getConstant