Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 3192

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Returns an array with the names of all modules compiled and loaded</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.get-included-files.html">get_included_files</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.get-magic-quotes-gpc.html">get_magic_quotes_gpc</a></div>
 <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.get-loaded-extensions" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_loaded_extensions</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">get_loaded_extensions</span> &mdash; <span class="dc-title">Returns an array with the names of all modules compiled and loaded</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.get-loaded-extensions-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>get_loaded_extensions</strong></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$zend_extensions</code><span class="initializer"> = false</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   This function returns the names of all the modules compiled and
   loaded in the PHP interpreter.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.get-loaded-extensions-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">zend_extensions</code></em></span>
     <dd>

      <p class="para">
       Only return Zend extensions, if not then regular extensions, like 
       mysqli are listed. Defaults to <strong><code>FALSE</code></strong> (return regular extensions).
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-loaded-extensions-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns an indexed array of all the modules names.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.get-loaded-extensions-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>5.2.4</td>
       <td>
        The optional <em><code class="parameter">zend_extensions</code></em> parameter was added
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-function.get-loaded-extensions-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-490">
    <p><strong>Example #1  <span class="function"><strong>get_loaded_extensions()</strong></span> Example</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_loaded_extensions</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>The above example will output
something similar to:</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
Array
(
   [0] =&gt; xml
   [1] =&gt; wddx
   [2] =&gt; standard
   [3] =&gt; session
   [4] =&gt; posix
   [5] =&gt; pgsql
   [6] =&gt; pcre
   [7] =&gt; gd
   [8] =&gt; ftp
   [9] =&gt; db
   [10] =&gt; calendar
   [11] =&gt; bcmath
)
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.get-loaded-extensions-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.get-extension-funcs.html" class="function" rel="rdfs-seeAlso">get_extension_funcs()</a> - Returns an array with the names of the functions of a module</span></li>
    <li class="member"> <span class="function"><a href="function.extension-loaded.html" class="function" rel="rdfs-seeAlso">extension_loaded()</a> - Find out whether an extension is loaded</span></li>
    <li class="member"> <span class="function"><a href="function.dl.html" class="function" rel="rdfs-seeAlso">dl()</a> - Loads a PHP extension at runtime</span></li>
    <li class="member"> <span class="function"><a href="function.phpinfo.html" class="function" rel="rdfs-seeAlso">phpinfo()</a> - Outputs information about PHP's configuration</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.get-included-files.html">get_included_files</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.get-magic-quotes-gpc.html">get_magic_quotes_gpc</a></div>
 <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>