<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionclassconstant.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  '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);

?>
<div id="reflectionclassconstant.getname" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionClassConstant::getName</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.1.0, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionClassConstant::getName</span> &mdash; <span class="dc-title">Get name of the constant</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionclassconstant.getname-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionClassConstant::getName</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionclassconstant.getname-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionclassconstant.getname-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the constant&#039;s name.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-reflectionclassconstant.getname-changelog">
  <h3 class="title">更新日志</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>版本</th>
      <th>说明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.1.0</td>
      <td>
       Throws an <span class="classname"><a href="class.error.php" class="classname">Error</a></span> in case the <span class="property">name</span> property has not been initialized.
       Previously, the method returned <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


</div><?php manual_footer($setup); ?>