array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), '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

Açıklama

public ReflectionClassConstant::getName(): string

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Returns the constant's name.

Sürüm Bilgisi

Sürüm: Açıklama
8.1.0 Throws an Error in case the name property has not been initialized. Previously, the method returned false on failure.