<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.get-defined-functions.php',
    1 => 'get_defined_functions',
    2 => 'Lista todas las funciones definidas',
  ),
  'up' => 
  array (
    0 => 'ref.funchand.php',
    1 => 'Funciones de Manejo de Funciones',
  ),
  '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' => 'es',
    '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">Lista todas las funciones definidas</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.get-defined-functions-description">
  <h3 class="title">Descripción</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">
   Lista todas las funciones definidas.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.get-defined-functions-parameters">
  <h3 class="title">Parámetros</h3>
  <dl>
   
    <dt><code class="parameter">exclude_disabled</code></dt>
    <dd>
     <p class="para">
      Si las funciones deshabilitadas deben ser excluidas del valor de retorno. Este parámetro no tiene efecto
      a partir de PHP 8.0.0.
     </p>
     <div class="warning"><strong class="warning">Advertencia</strong><p class="simpara">Esta característica está
<em>OBSOLETA</em> a partir de PHP 8.5.0. Depender de esta característica
está altamente desaconsejado.</p></div>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-defined-functions-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Retorna un array multidimensional, que contiene la lista de todas las funciones definidas,
   tanto las funciones internas de PHP como las definidas por el usuario. Los nombres
   de las funciones internas son accesibles mediante <var class="varname">$arr["internal"]</var>, y las
   funciones de usuario son accesibles mediante <var class="varname">$arr["user"]</var>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.get-defined-functions-changelog">
  <h3 class="title">Historial de cambios</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versión</th>
      <th>Descripción</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.5.0</td>
      <td>
       El parámetro <code class="parameter">exclude_disabled</code> ha sido marcado como obsoleto,
       ya que no tiene ningún efecto.
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
       El valor por omisión del argumento <code class="parameter">exclude_disabled</code>
       ha sido cambiado de <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> a <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>. Sin embargo, no tendrá
       ningún efecto ya que las funciones deshabilitadas se eliminan de la tabla de funciones
       en tiempo de compilación.
      </td>
     </tr>

     <tr>
      <td>7.0.15, 7.1.1</td>
      <td>
       El argumento <code class="parameter">exclude_disabled</code> ha sido añadido.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.get-defined-functions-examples">
  <h3 class="title">Ejemplos</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Ejemplo #1 Ejemplo con <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>Resultado del ejemplo anterior es similar a:</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">Ver también</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> - Indica si una funci&oacute;n est&aacute; definida</span></li>
    <li><span class="function"><a href="function.get-defined-vars.php" class="function" rel="rdfs-seeAlso">get_defined_vars()</a> - Lista todas las variables definidas</span></li>
    <li><span class="function"><a href="function.get-defined-constants.php" class="function" rel="rdfs-seeAlso">get_defined_constants()</a> - Devuelve la lista de constantes y sus valores</span></li>
    <li><span class="function"><a href="function.get-declared-classes.php" class="function" rel="rdfs-seeAlso">get_declared_classes()</a> - Lista todas las clases definidas en PHP</span></li>
   </ul>
  </p>
 </div>


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