<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.get-extension-funcs.php',
    1 => 'get_extension_funcs',
    2 => '返回模块函数名称的数组',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP 选项/信息 函数',
  ),
  'prev' => 
  array (
    0 => 'function.get-defined-constants.php',
    1 => 'get_defined_constants',
  ),
  'next' => 
  array (
    0 => 'function.get-include-path.php',
    1 => 'get_include_path',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/info/functions/get-extension-funcs.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.get-extension-funcs" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_extension_funcs</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">get_extension_funcs</span> &mdash; <span class="dc-title">返回模块函数名称的数组</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.get-extension-funcs-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>get_extension_funcs</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$extension</code></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   该函数根据 <code class="parameter">extension</code> 返回模块内定义的所有函数的名称。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.get-extension-funcs-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">extension</code></dt>
     <dd>
      <p class="para">
       模块名称。
      </p>
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <p class="para">
        这个参数必须是<em>小写（lowercase）</em>的。
       </p>
      </p></blockquote>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-extension-funcs-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回包含所有函数名的数组，如果 <code class="parameter">extension</code> 不是一个有效的扩展则返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.get-extension-funcs-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 打印 XML 函数</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">get_extension_funcs</span><span style="color: #007700">(</span><span style="color: #DD0000">"xml"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>以上示例的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [0] =&gt; xml_parser_create
    [1] =&gt; xml_parser_create_ns
    [2] =&gt; xml_set_object
    [3] =&gt; xml_set_element_handler
    [4] =&gt; xml_set_character_data_handler
    [5] =&gt; xml_set_processing_instruction_handler
    [6] =&gt; xml_set_default_handler
    [7] =&gt; xml_set_unparsed_entity_decl_handler
    [8] =&gt; xml_set_notation_decl_handler
    [9] =&gt; xml_set_external_entity_ref_handler
    [10] =&gt; xml_set_start_namespace_decl_handler
    [11] =&gt; xml_set_end_namespace_decl_handler
    [12] =&gt; xml_parse
    [13] =&gt; xml_parse_into_struct
    [14] =&gt; xml_get_error_code
    [15] =&gt; xml_error_string
    [16] =&gt; xml_get_current_line_number
    [17] =&gt; xml_get_current_column_number
    [18] =&gt; xml_get_current_byte_index
    [19] =&gt; xml_parser_free
    [20] =&gt; xml_parser_set_option
    [21] =&gt; xml_parser_get_option
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.get-extension-funcs-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.get-loaded-extensions.php" class="function" rel="rdfs-seeAlso">get_loaded_extensions()</a> - 返回所有编译并加载模块名的 array</span></li>
    <li><span class="methodname"><a href="reflectionextension.getfunctions.php" class="methodname" rel="rdfs-seeAlso">ReflectionExtension::getFunctions()</a> - 获取扩展中的函数</span></li>
   </ul>
  </p>
 </div>


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