<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionclass.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'reflectionclass.getconstants.php',
    1 => 'ReflectionClass::getConstants',
    2 => 'Gets constants',
  ),
  'up' => 
  array (
    0 => 'class.reflectionclass.php',
    1 => 'ReflectionClass',
  ),
  'prev' => 
  array (
    0 => 'reflectionclass.getconstant.php',
    1 => 'ReflectionClass::getConstant',
  ),
  'next' => 
  array (
    0 => 'reflectionclass.getconstructor.php',
    1 => 'ReflectionClass::getConstructor',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/reflection/reflectionclass/getconstants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionclass.getconstants" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionClass::getConstants</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionClass::getConstants</span> &mdash; <span class="dc-title">Gets constants</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionclass.getconstants-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionClass::getConstants</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$filter</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   Gets all defined constants from a class, regardless of their visibility.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionclass.getconstants-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">filter</code></dt>
    <dd>
     <p class="para">
      The optional filter, for filtering desired constant visibilities. It&#039;s configured using
      the <a href="class.reflectionclassconstant.php#reflectionclassconstant.constants.modifiers" class="link">ReflectionClassConstant constants</a>,
      and defaults to all constant visibilities.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionclass.getconstants-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   An <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of constants, where the keys hold the name
   and the values the value of the constants.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-reflectionclass.getconstants-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">filter</code> has been added.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionclass.getconstants-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionclass.getconstant.php" class="methodname" rel="rdfs-seeAlso">ReflectionClass::getConstant()</a> - Gets defined constant</span></li>
   </ul>
  </p>
 </div>


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