<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.funchand.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.get-defined-functions.php',
    1 => 'get_defined_functions',
    2 => 'Liste toutes les fonctions d&eacute;finies',
  ),
  'up' => 
  array (
    0 => 'ref.funchand.php',
    1 => 'Fonctions sur la gestion des fonctions',
  ),
  'prev' => 
  array (
    0 => 'function.function-exists.php',
    1 => 'function_exists',
  ),
  'next' => 
  array (
    0 => 'function.register-shutdown-function.php',
    1 => 'register_shutdown_function',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/funchand/functions/get-defined-functions.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.get-defined-functions" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_defined_functions</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">get_defined_functions</span> &mdash; <span class="dc-title">Liste toutes les fonctions définies</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.get-defined-functions-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>get_defined_functions</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$exclude_disabled</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</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">
   Liste toutes les fonctions définies.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.get-defined-functions-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">exclude_disabled</code></dt>
    <dd>
     <p class="para">
      Si les fonctions désactivées doivent être exclues de la valeur de retour. Ce paramètre n’a aucun effet
      à partir de PHP 8.0.0.
     </p>
     <div class="warning"><strong class="warning">Avertissement</strong><p class="simpara">
 Cette fonctionnalité est <em>OBSOLÈTE</em> à partir de PHP 8.5.0.
 Dépendre de cette fonctionnalité est fortement déconseillé.
</p></div>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-defined-functions-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne un tableau multidimensionnel, contenant la liste de toutes les fonctions définies,
   aussi bien les fonctions internes à PHP que celles déjà définies par l&#039;utilisateur. Les noms
   des fonctions internes sont accessibles via <var class="varname">$arr["internal"]</var>, et les
   fonctions utilisateur sont accessibles via <var class="varname">$arr["user"]</var>.
  </p>
 </div>

 
 <div class="refsect1 changelog" id="refsect1-function.get-defined-functions-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.5.0</td>
      <td>
       Le paramètre <code class="parameter">exclude_disabled</code> est obsolète,
       car il n’a désormais plus aucun effet.
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
       La valeur par défaut du paramètre <code class="parameter">exclude_disabled</code>
       a été changée de <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> à <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>. Cependant, cela n’aura aucun effet,
       car les fonctions désactivées sont retirées de la table des fonctions au
       moment de la compilation.
      </td>
     </tr>

     <tr>
      <td>7.0.15, 7.1.1</td>
      <td>
       Le paramètre <code class="parameter">exclude_disabled</code> a été ajouté.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.get-defined-functions-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Exemple avec <span class="function"><strong>get_defined_functions()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">myrow</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">, </span><span style="color: #0000BB">$data</span><span style="color: #007700">)<br />{<br />    return </span><span style="color: #DD0000">"&lt;tr&gt;&lt;th&gt;</span><span style="color: #0000BB">$id</span><span style="color: #DD0000">&lt;/th&gt;&lt;td&gt;</span><span style="color: #0000BB">$data</span><span style="color: #DD0000">&lt;/td&gt;&lt;/tr&gt;\n"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">$arr </span><span style="color: #007700">= </span><span style="color: #0000BB">get_defined_functions</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$arr</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Résultat de l&#039;exemple ci-dessus est similaire à :</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [internal] =&gt; Array
        (
            [0] =&gt; zend_version
            [1] =&gt; func_num_args
            [2] =&gt; func_get_arg
            [3] =&gt; func_get_args
            [4] =&gt; strlen
            [5] =&gt; strcmp
            [6] =&gt; strncmp
            ...
            [750] =&gt; bcscale
            [751] =&gt; bccomp
        )

    [user] =&gt; Array
        (
            [0] =&gt; myrow
        )

)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.get-defined-functions-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.function-exists.php" class="function" rel="rdfs-seeAlso">function_exists()</a> - Indique si une fonction est d&eacute;finie</span></li>
    <li><span class="function"><a href="function.get-defined-vars.php" class="function" rel="rdfs-seeAlso">get_defined_vars()</a> - Liste toutes les variables d&eacute;finies</span></li>
    <li><span class="function"><a href="function.get-defined-constants.php" class="function" rel="rdfs-seeAlso">get_defined_constants()</a> - Retourne la liste des constantes et leurs valeurs</span></li>
    <li><span class="function"><a href="function.get-declared-classes.php" class="function" rel="rdfs-seeAlso">get_declared_classes()</a> - Liste toutes les classes d&eacute;finies dans PHP</span></li>
   </ul>
  </p>
 </div>


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