<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.extension-loaded.php',
    1 => 'extension_loaded',
    2 => 'Pr&uuml;ft, ob eine Erweiterung geladen ist',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP-Optionen-/-Informationen-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.dl.php',
    1 => 'dl',
  ),
  'next' => 
  array (
    0 => 'function.gc-collect-cycles.php',
    1 => 'gc_collect_cycles',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/info/functions/extension-loaded.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.extension-loaded" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">extension_loaded</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">extension_loaded</span> &mdash; <span class="dc-title">Prüft, ob eine Erweiterung geladen ist</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.extension-loaded-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>extension_loaded</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"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Prüft, ob eine Erweiterung geladen ist.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.extension-loaded-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">extension</code></dt>
     <dd>
      <p class="para">
       Der Name der Erweiterung. Bei diesem Parameter wird die
       Groß-/Kleinschreibung nicht berücksichtigt.
      </p>
      <p class="para">
       Eine Liste der Namen verschiedener Erweiterungen finden Sie in der
       Ausgabe von <span class="function"><a href="function.phpinfo.php" class="function">phpinfo()</a></span> oder Sie können das
       <code class="literal">CGI</code>- oder <code class="literal">CLI</code>-Binary mit der
       Option <strong class="option unknown">-m</strong> aufrufen:
       <div class="example-contents screen">
<div class="parameterscode"><pre class="parameterscode">$ php -m
[PHP Modules]
xml
tokenizer
standard
sockets
session
posix
pcre
overload
mysql
mbstring
ctype

[Zend Modules]</pre>
</div>
       </div>
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.extension-loaded-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück, wenn die durch <code class="parameter">extension</code>
   identifizierte Erweiterung geladen ist, andernfalls <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.extension-loaded-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
   <p><strong>Beispiel #1 <span class="function"><strong>extension_loaded()</strong></span>-Beispiel</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">if (!</span><span style="color: #0000BB">extension_loaded</span><span style="color: #007700">(</span><span style="color: #DD0000">'gd'</span><span style="color: #007700">)) {<br />    if (!</span><span style="color: #0000BB">dl</span><span style="color: #007700">(</span><span style="color: #DD0000">'gd.so'</span><span style="color: #007700">)) {<br />        exit;<br />    }<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

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


 <div class="refsect1 seealso" id="refsect1-function.extension-loaded-seealso">
  <h3 class="title">Siehe auch</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> - Liefert ein Array mit den Namen aller einkompilierten und geladenen
   Erweiterungen</span></li>
    <li><span class="function"><a href="function.get-extension-funcs.php" class="function" rel="rdfs-seeAlso">get_extension_funcs()</a> - Liefert die Namen der Funktionen einer Erweiterung</span></li>
    <li><span class="function"><a href="function.phpinfo.php" class="function" rel="rdfs-seeAlso">phpinfo()</a> - Liefert Informationen zur PHP-Konfiguration</span></li>
    <li><span class="function"><a href="function.dl.php" class="function" rel="rdfs-seeAlso">dl()</a> - L&auml;dt eine PHP-Erweiterung zur Laufzeit</span></li>
    <li><span class="function"><a href="function.function-exists.php" class="function" rel="rdfs-seeAlso">function_exists()</a> - Falls die angegebene Funktion definiert ist, wird true zur&uuml;ck
   gegeben</span></li>
   </ul>
  </p>
 </div>


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