<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionconstant.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'reflectionconstant.isdeprecated.php',
    1 => 'ReflectionConstant::isDeprecated',
    2 => 'V&eacute;rifie la d&eacute;pr&eacute;ciation',
  ),
  'up' => 
  array (
    0 => 'class.reflectionconstant.php',
    1 => 'ReflectionConstant',
  ),
  'prev' => 
  array (
    0 => 'reflectionconstant.getvalue.php',
    1 => 'ReflectionConstant::getValue',
  ),
  'next' => 
  array (
    0 => 'reflectionconstant.tostring.php',
    1 => 'ReflectionConstant::__toString',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/reflection/reflectionconstant/isdeprecated.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionconstant.isdeprecated" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionConstant::isDeprecated</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">ReflectionConstant::isDeprecated</span> &mdash; <span class="dc-title">Vérifie la dépréciation</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionconstant.isdeprecated-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionConstant::isDeprecated</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Vérifie si la constante est dépréciée.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionconstant.isdeprecated-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionconstant.isdeprecated-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> si c&#039;est déprécié, sinon <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionconstant.isdeprecated-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 
    Exemple de <span class="methodname"><strong>ReflectionConstant::isDeprecated()</strong></span>
   </strong></p>
   <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// E_STRICT est déprécié à partir de PHP 8.4<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">((new </span><span style="color: #0000BB">ReflectionConstant</span><span style="color: #007700">(</span><span style="color: #DD0000">'E_STRICT'</span><span style="color: #007700">))-&gt;</span><span style="color: #0000BB">isDeprecated</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Sortie de l&#039;exemple ci-dessus en PHP 8.4 :</p></div>
   <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">bool(true)</pre>
</div>
   </div>
  </div>
 </div>


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