Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
切换语言:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
The ReflectionConstant class
(PHP 8 >= 8.4.0)
简介
The
ReflectionConstant
class reports information about a global constant.
类摘要
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
Name of the constant. Read-only, throws
ReflectionException
in attempt to write.
更新日志
版本
说明
8.5.0
The class is no longer final.
参见
ReflectionClassConstant
目录
ReflectionConstant::__construct
— Constructs a ReflectionConstant
ReflectionConstant::getExtension
— Gets ReflectionExtension of the defining extension
ReflectionConstant::getExtensionName
— Gets name of the defining extension
ReflectionConstant::getFileName
— Gets name of the defining file
ReflectionConstant::getName
— Gets name
ReflectionConstant::getNamespaceName
— Gets namespace name
ReflectionConstant::getShortName
— Gets short name
ReflectionConstant::getValue
— Gets value
ReflectionConstant::isDeprecated
— Checks if deprecated
ReflectionConstant::__toString
— Returns string representation
发现了问题?
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
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
^