downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/function.get-extension-funcs.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = 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 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'function.get-extension-funcs.php',
   
1 => 'get_extension_funcs',
  ),
 
'up' =>
  array (
   
0 => 'ref.info.php',
   
1 => 'PHP Options/Info Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.get-defined-constants.php',
   
1 => 'get_defined_constants',
  ),
 
'next' =>
  array (
   
0 => 'function.get-include-path.php',
   
1 => 'get_include_path',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<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)</p><p class="refpurpose"><span class="refname">get_extension_funcs</span> &mdash; <span class="dc-title">Returns an array with the names of the functions of a module</span></p>

 </div>
 
 <a name="function.get-extension-funcs.description"></a><div class="refsect1 description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><b>get_extension_funcs</b></span>
    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$module_name</tt></span>
   )</div>

  <p class="para rdfs-comment">
   This function returns the names of all the functions defined in
   the module indicated by <i><tt class="parameter">module_name</tt></i>
.
  </p>
 </div>


 <a name="function.get-extension-funcs.parameters"></a><div class="refsect1 parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   </p><dl>

    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">module_name</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       The module name.
      </p>
      <blockquote><p><b class="note">Note</b>:
      
        This parameter must be in <em class="emphasis">lowercase</em>.
       <br />
      </p></blockquote>
     </dd>

   
   </dl>
<p>
  </p>
 </div>


 <a name="function.get-extension-funcs.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns an array with all the functions, or <b><tt class="constant">FALSE</tt></b> if
   <i><tt class="parameter">module_name</tt></i>
 is not a valid extension.
  </p>
 </div>


 <a name="function.get-extension-funcs.examples"></a><div class="refsect1 examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   </p><div class="example">
    <p><b>Example #1 Prints the XML functions</b></p>
    <div class="example-contents programlisting">
<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 para"><p>The above example will output
something similar to:</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>
  </p>
 </div>


 <a name="function.get-extension-funcs.seealso"></a><div class="refsect1 seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   </p><ul class="simplelist">
    <li class="member"><a href="function.get-loaded-extensions.php" class="function" rel="rdfs-seeAlso">get_loaded_extensions()</a> - Returns an array with the names of all modules compiled and loaded</li>
   </ul><p>
  </p>
 </div>


</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites