uTools-Manuals/docs/php/get_extension_funcs.html
2019-04-28 19:00:34 +08:00

124 lines
4.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>返回模块函数名称的数组</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><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)</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">string</span> <code class="parameter">$module_name</code></span>
) : <span class="type">array</span></div>
<p class="para rdfs-comment">
该函数根据 <code class="parameter">module_name</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">module_name</code></dt>
<dd>
<p class="para">
模块名称。
</p>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
这个参数必须是<em class="emphasis">小写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">module_name</code> 不是一个有效的扩展则返回 <strong><code>FALSE</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-497">
<p><strong>Example #1 打印 XML 函数</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><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>
</pre></div>
</div>
<div class="example-contents"><p>以上例程的输出类似于:</p></div>
<div class="example-contents screen">
<div class="cdata"><pre>
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
[22] =&gt; utf8_encode
[23] =&gt; utf8_decode
)
</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 class="member"><span class="function"><a href="get_loaded_extensions.html" class="function" rel="rdfs-seeAlso">get_loaded_extensions()</a> - 返回所有编译并加载模块名的 array</span></li>
<li class="member"><span class="methodname"><a href="reflectionextension.getfunctions.html" class="methodname" rel="rdfs-seeAlso">ReflectionExtension::getFunctions()</a> - 获取扩展中的函数</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>