« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 20 for ReflectionConstant (0.001 sec.)
ReflectionConstant クラス | PHP 8.3 12286
ReflectionConstant クラス (PHP 8 >= 8.4.0) はじめに ReflectionConstant クラスは、グローバル定数に関する情報を報告します。 クラス概要 class ReflectionConstant implements Reflector { /* プロパティ */ public string $ name ; /* メソッド */ publ ... がスローされます。 変更履歴 バージョン 説明 8.5.0 このクラスは、final ではなくなりました。 参考 ReflectionClassConstant 目次 ReflectionConstant::__construct — ReflectionConstant を構築する ReflectionConstant::getAttributes — アトリビュートを取得する ReflectionConsta ... nt::getExtension — 定数を定義した拡張モジュールの ReflectionExtension を取得する ReflectionConstant::getExtensionName — 定数を定義した拡張モジュールの名前を取得する ReflectionConstant::getFileName — 定数を定義したファイル名 ... を取得する ReflectionConstant::getName — 定数名を取得する ReflectionConstant::getNamespaceName — 名前空間名を取得する ReflectionConstant::getShortName — ...
https://man.mtool.work/php/8.3/class.reflectionconstant.html
ReflectionConstant::getName — 定数名を取得する | PHP 8.3 10111
ReflectionConstant::getName (PHP 8 >= 8.4.0) ReflectionConstant::getName — 定数名を取得する 説明 public function ReflectionConstant::getName (): string 定数名を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 名前空間と名 ... 前で構成された定数名を返します。 例 例1 ReflectionConstant::getName() の例 <?php namespace Foo ; const BAR = 'bar' ; echo (new \ReflectionConstant ( 'Foo\BAR' ))-> getName (); ?> 上 ... の例の出力は以下となります。 Foo\BAR 参考 ReflectionConstant::getNamespaceName() - 名前空間名を取得する ...
https://man.mtool.work/php/8.3/reflectionconstant.getname.html
ReflectionConstant::getShortName — 短い名前を取得する | PHP 8.3 10060
ReflectionConstant::getShortName (PHP 8 >= 8.4.0) ReflectionConstant::getShortName — 短い名前を取得する 説明 public function ReflectionConstant::getShortName (): string 名前空間部分を除いた、定数の短い名前を取得します。 パラメータ この関数に ... はパラメータはありません。 戻り値 定数の短い名前を返します。 例 例1 ReflectionConstant::getShortName() の例 <?php namespace Foo ; const BAR = 'bar' ; echo (new \ReflectionConstant ( 'Foo\BAR' ))-> getShortName ... (); ?> 上の例の出力は以下となります。 BAR 参考 ReflectionConstant::getName() - 定数名を取得する ...
https://man.mtool.work/php/8.3/reflectionconstant.getshortname.html
ReflectionConstant::__construct — ReflectionConstant を構築する | PHP 8.3 9924
ReflectionConstant::__construct (PHP 8 >= 8.4.0) ReflectionConstant::__construct — ReflectionConstant を構築する 説明 public function ReflectionConstant::__construct ( string $name ) 新しい ReflectionConstant を構築します。 パラメータ name ...
https://man.mtool.work/php/8.3/reflectionconstant.construct.html
ReflectionConstant::getNamespaceName — 名前空間名を取得する | PHP 8.3 9822
ReflectionConstant::getNamespaceName (PHP 8 >= 8.4.0) ReflectionConstant::getNamespaceName — 名前空間名を取得する 説明 public function ReflectionConstant::getNamespaceName (): string 定数の名前空間名を取得します。 パラメータ この関数にはパラ ... メータはありません。 戻り値 名前空間名を返します。グローバル名前空間の場合は空文字列を返します。 例 例1 ReflectionConstant::getNamespaceName() の例 <?php namespace Foo { const BAR = 'bar' ; var_dump ((new \ReflectionConstant ( 'Foo\BAR' ))-> get ... NamespaceName ()); } namespace { const BAR = 'bar' ; var_dump ((new \ReflectionConstant ( 'BAR' ))-> getNamespaceName ()); } ?> 上の例の出力は以下となります。 string(3) "Foo" string(0) "" ...
https://man.mtool.work/php/8.3/reflectionconstant.getnamespacename.html
ReflectionConstant::__toString — 文字列表現を返す | PHP 8.3 9788
ReflectionConstant::__toString (PHP 8 >= 8.4.0) ReflectionConstant::__toString — 文字列表現を返す 説明 public function ReflectionConstant::__toString (): string ReflectionConstant オブジェクトの文字列表現を返します。 パラメータ この関数には ... パラメータはありません。 戻り値 この ReflectionConstant インスタンスの文字列表現を返します。 参考 __toString() ...
https://man.mtool.work/php/8.3/reflectionconstant.tostring.html
ReflectionConstant::getExtensionName — 定数を定義した拡張モジュールの名前を取得... 9652
ReflectionConstant::getExtensionName (PHP 8 >= 8.5.0) ReflectionConstant::getExtensionName — 定数を定義した拡張モジュールの名前を取得する 説明 public function ReflectionConstant::getExtensionName (): string | false この定数を定義した拡張モジ ... りません。 戻り値 この定数を定義した拡張モジュールの名前を返します。ユーザーが定義した定数の場合は false を返します。 例 例1 ReflectionConstant::getExtensionName() の基本的な使い方 <?php var_dump ((new ReflectionConstant ( 'SQLITE3_TEXT' ))-> getExtensionName ()); ? ... > 上の例の出力は以下となります。 string(7) "sqlite3" 参考 ReflectionConstant::getExtension() - 定数を定義した拡張モジュールの ReflectionExtension を取得する ...
https://man.mtool.work/php/8.3/reflectionconstant.getextensionname.html
ReflectionConstant::getExtension — 定数を定義した拡張モジュールの ReflectionExt... 9550
ReflectionConstant::getExtension (PHP 8 >= 8.5.0) ReflectionConstant::getExtension — 定数を定義した拡張モジュールの ReflectionExtension を取得する 説明 public function ReflectionConstant::getExtension (): ? ReflectionExtension この定数を定義 ... た拡張モジュールを表す ReflectionExtension オブジェクトを返します。 ユーザーが定義した定数の場合は null を返します。 例 例1 ReflectionConstant::getExtension() の基本的な使い方 <?php var_dump ((new ReflectionConstant ( 'SQLITE3_TEXT' ))-> getExtension ()); ?> 上の例 ... の出力は以下となります。 object(ReflectionExtension)#2 (1) { ["name"]=> string(7) "sqlite3" } 参考 ReflectionConstant::getExtensionName() - 定数を定義した拡張モジュールの名前を取得する ...
https://man.mtool.work/php/8.3/reflectionconstant.getextension.html
ReflectionConstant::isDeprecated — 非推奨かどうかを調べる | PHP 8.3 9312
ReflectionConstant::isDeprecated (PHP 8 >= 8.4.0) ReflectionConstant::isDeprecated — 非推奨かどうかを調べる 説明 public function ReflectionConstant::isDeprecated (): bool 定数が非推奨かどうかを調べます。 パラメータ この関数にはパラメータはあ ... りません。 戻り値 定数が非推奨なら true を、そうでなければ false を返します。 例 例1 ReflectionConstant::isDeprecated() の例 <?php // E_STRICT is deprecated as of PHP 8.4 var_dump ((new ReflectionConstant ( 'E_STRICT' ))-> isD ...
https://man.mtool.work/php/8.3/reflectionconstant.isdeprecated.html
ReflectionConstant::getValue — 値を取得する | PHP 8.3 8853
ReflectionConstant::getValue (PHP 8 >= 8.4.0) ReflectionConstant::getValue — 値を取得する 説明 public function ReflectionConstant::getValue (): mixed 定数の値を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 定数の値を返 ... します。 例 例1 ReflectionProperty::getValue() の例 <?php const FOO = 'foo' ; var_dump ((new \ReflectionConstant ( 'FOO' ))-> getValue ()); ?> 上の例の出力は以下となります。 string(3) "foo" ...
https://man.mtool.work/php/8.3/reflectionconstant.getvalue.html
PREV 1 2 NEXT