array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'reflectionclassconstant.getname.php', 1 => 'ReflectionClassConstant::getName', 2 => 'Get name of the constant', ), 'up' => array ( 0 => 'class.reflectionclassconstant.php', 1 => 'ReflectionClassConstant', ), 'prev' => array ( 0 => 'reflectionclassconstant.getmodifiers.php', 1 => 'ReflectionClassConstant::getModifiers', ), 'next' => array ( 0 => 'reflectionclassconstant.gettype.php', 1 => 'ReflectionClassConstant::getType', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/reflection/reflectionclassconstant/getname.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ReflectionClassConstant::getName

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClassConstant::getNameGet name of the constant

Descrizione

public ReflectionClassConstant::getName(): string

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns the constant's name.

Log delle modifiche

Versione Descrizione
8.1.0 Throws an Error in case the name property has not been initialized. Previously, the method returned false on failure.