Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
ReflectionConstant クラス
(PHP 8 >= 8.4.0)
はじめに
ReflectionConstant
クラスは、グローバル定数に関する情報を報告します。
クラス概要
class
ReflectionConstant
implements
Reflector
{
/* プロパティ */
public
string
$
name
;
/* メソッド */
public
function
__construct
(
string
$name
)
public
function
getExtension
():
?
ReflectionExtension
public
function
getExtensionName
():
string
|
false
public
function
getFileName
():
string
|
false
public
function
getName
():
string
public
function
getNamespaceName
():
string
public
function
getShortName
():
string
public
function
getValue
():
mixed
public
function
isDeprecated
():
bool
public
function
__toString
():
string
}
プロパティ
name
定数の名前。読み取り専用です。 書き込もうとすると
ReflectionException
がスローされます。
変更履歴
バージョン
説明
8.5.0
このクラスは、final ではなくなりました。
参考
ReflectionClassConstant
目次
ReflectionConstant::__construct
— ReflectionConstant を構築する
ReflectionConstant::getExtension
— 定数を定義した拡張モジュールの ReflectionExtension を取得する
ReflectionConstant::getExtensionName
— 定数を定義した拡張モジュールの名前を取得する
ReflectionConstant::getFileName
— 定数を定義したファイル名を取得する
ReflectionConstant::getName
— 定数名を取得する
ReflectionConstant::getNamespaceName
— 名前空間名を取得する
ReflectionConstant::getShortName
— 短い名前を取得する
ReflectionConstant::getValue
— 値を取得する
ReflectionConstant::isDeprecated
— 非推奨かどうかを調べる
ReflectionConstant::__toString
— 文字列表現を返す
Found A Problem?
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^