« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for consts (0.001 sec.)
クラス定数を取得する 11150
« ReflectionClass::getReflectionConstant ReflectionClass::getShortName » PHP Manual ReflectionClass クラス定数を取得する 検索 ReflectionClass::getReflectionConstants (PHP 7 >= 7.1.0, PHP 8) ReflectionClass::getReflectionConstants — クラス定 ... FOO = 1 ; protected const BAR = 2 ; private const BAZ = 3 ; } $foo = new Foo (); $reflect = new ReflectionClass ( $foo ); $consts = $reflect -> getReflectionConstants (); foreach ( $consts as $const ) { print $const -> getName () . "\n" ; } var_dump ( ... $consts ); ?> 上の例の出力は、 たとえば以下のようになります。 FOO BAR BAZ array(3) { [0]=> object(ReflectionClassConstant)#3 (2) { ... t 関連キーワード: ReflectionClass 定数 ReflectionClassConstant string getReflectionConstants Foo const クラス class filter consts object name getReflectionConstant array foo new reflect Search getShortName ...
https://man.mtool.work/php/8.3/reflectionclass.getreflectionconstants.html
クラス定数を取得する 11021
« ReflectionClass::getReflectionConstant ReflectionClass::getShortName » PHP Manual ReflectionClass クラス定数を取得する 検索 ReflectionClass::getReflectionConstants (PHP 7 >= 7.1.0, PHP 8) ReflectionClass::getReflectionConstants — クラス定 ... FOO = 1 ; protected const BAR = 2 ; private const BAZ = 3 ; } $foo = new Foo (); $reflect = new ReflectionClass ( $foo ); $consts = $reflect -> getReflectionConstants (); foreach ( $consts as $const ) { print $const -> getName () . "\n" ; } var_dump ( ... $consts ); ?> 上の例の出力は、 たとえば以下のようになります。 FOO BAR BAZ array(3) { [0]=> object(ReflectionClassConstant)#3 (2) { ... 取得する ReflectionClassConstant 関連キーワード: ReflectionClass 定数 ReflectionClassConstant getReflectionConstants filter consts getReflectionConstant reflect getShortName リフレクション フィルタ 履歴 基本的 protected private foreach print getName dum ...
https://man.mtool.work/php/8.3/reflectionclass.getreflectionconstants.html
定義済み定数 7397
« 実行時設定 runkit7 関数 » PHP Manual runkit7 定義済み定数 検索 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 RUNKIT7_IMPO ... int ) runkit7_import() flag indicating that class methods should be imported from the specified file. RUNKIT7_IMPORT_CLASS_CONSTS ( int ) runkit7_import() flag indicating that class constants should be imported from the specified file. RUNKIT7_IMPORT_C ...
https://man.mtool.work/php/8.3/runkit7.constants.html
定義済み定数 7397
« 実行時設定 runkit7 関数 » PHP Manual runkit7 定義済み定数 検索 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 RUNKIT7_IMPO ... int ) runkit7_import() flag indicating that class methods should be imported from the specified file. RUNKIT7_IMPORT_CLASS_CONSTS ( int ) runkit7_import() flag indicating that class constants should be imported from the specified file. RUNKIT7_IMPORT_C ...
https://man.mtool.work/php/8.3/runkit7.constants.html
PREV 1 NEXT