Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
Selecione a língua:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
A classe ReflectionConstant
(PHP 8 >= 8.4.0)
Introdução
A classe
ReflectionConstant
reporta informação sobre uma constante global.
Resumo da classe
class
ReflectionConstant
implements
Reflector
{
/* Propriedades */
public
string
$
name
;
/* Métodos */
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
}
Propriedades
name
Nome da constante. Somente leitura, lança uma exceção
ReflectionException
em tentativa de escrita.
Registro de Alterações
Versão
Descrição
8.5.0
A classe não é mais final.
Veja Também
ReflectionClassConstant
Índice
ReflectionConstant::__construct
— Constrói um objeto ReflectionConstant
ReflectionConstant::getExtension
— Obtém ReflectionExtension da extensão de definição
ReflectionConstant::getExtensionName
— Obtém o nome da extensão definidora
ReflectionConstant::getFileName
— Obtém o nome do arquivo de definição
ReflectionConstant::getName
— Obtém o nome
ReflectionConstant::getNamespaceName
— Obtém o nome do namespace
ReflectionConstant::getShortName
— Obtém o nome abreviado
ReflectionConstant::getValue
— Obtém o valor
ReflectionConstant::isDeprecated
— Verifica se foi descontinuada
ReflectionConstant::__toString
— Retorna representação em string
Melhore Esta Página
Aprenda Como Melhorar Esta Página
•
Envie uma Solicitação de Modificação
•
Reporte um Problema
+
adicionar nota
Notas de Usuários
Não há notas de usuários para esta página.
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
^