<?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.ini-get-all.php',
    1 => 'ini_get_all',
    2 => 'Gets all configuration options',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP-Optionen-/-Informationen-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.ini-get.php',
    1 => 'ini_get',
  ),
  'next' => 
  array (
    0 => 'function.ini-parse-quantity.php',
    1 => 'ini_parse_quantity',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/info/functions/ini-get-all.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ini-get-all" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ini_get_all</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ini_get_all</span> &mdash; <span class="dc-title">Gets all configuration options</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ini-get-all-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ini_get_all</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$extension</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$details</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></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">
   Returns all the registered configuration options. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ini-get-all-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">extension</code></dt>
     <dd>
      <p class="para">
       An optional extension name. If not <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> or the <a href="language.types.string.php" class="link">String</a> <code class="literal">core</code>, the function returns only options
       specific for that extension.
      </p>
     </dd>
    
    
     <dt><code class="parameter">details</code></dt>
     <dd>
      <p class="para">
       Retrieve details settings or only the current value for each setting.
       Default is <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> (retrieve details).
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ini-get-all-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns an associative array with directive name as the array key.
   Returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> and raises an <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> level error
   if the <code class="parameter">extension</code> doesn&#039;t exist.
  </p>
  <p class="para">
   When <code class="parameter">details</code> is <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> (default) the array will
   contain <code class="literal">global_value</code> (set in
   <var class="filename">php.ini</var>), <code class="literal">local_value</code> (perhaps set with
   <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span> or <var class="filename">.htaccess</var>), and
   <code class="literal">access</code> (the access level).
  </p>
  <p class="para">
   When <code class="parameter">details</code> is <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> the value will be the
   current value of the option.
  </p>
  <p class="para">
   See the <a href="configuration.changes.modes.php" class="link">manual section</a>
   for information on what access levels mean.
  </p>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    It&#039;s possible for a directive to have multiple access levels, which is
    why <code class="literal">access</code> shows the appropriate bitmask values.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 examples" id="refsect1-function.ini-get-all-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>ini_get_all()</strong></span> examples</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">ini_get_all</span><span style="color: #007700">(</span><span style="color: #DD0000">"pcre"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">ini_get_all</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [pcre.backtrack_limit] =&gt; Array
        (
            [global_value] =&gt; 100000
            [local_value] =&gt; 100000
            [access] =&gt; 7
        )

    [pcre.recursion_limit] =&gt; Array
        (
            [global_value] =&gt; 100000
            [local_value] =&gt; 100000
            [access] =&gt; 7
        )

)
Array
(
    [allow_call_time_pass_reference] =&gt; Array
        (
            [global_value] =&gt; 0
            [local_value] =&gt; 0
            [access] =&gt; 6
        )

    [allow_url_fopen] =&gt; Array
        (
            [global_value] =&gt; 1
            [local_value] =&gt; 1
            [access] =&gt; 4
        )

    ...

)</pre>
</div>
    </div>
   </div>
   <div class="example" id="example-2">
    <p><strong>Beispiel #2 Disabling <code class="parameter">details</code></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">ini_get_all</span><span style="color: #007700">(</span><span style="color: #DD0000">"pcre"</span><span style="color: #007700">, </span><span style="color: #0000BB">false</span><span style="color: #007700">)); </span><span style="color: #FF8000">// Added in PHP 5.3.0<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">ini_get_all</span><span style="color: #007700">(</span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">false</span><span style="color: #007700">)); </span><span style="color: #FF8000">// Added in PHP 5.3.0<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [pcre.backtrack_limit] =&gt; 100000
    [pcre.recursion_limit] =&gt; 100000
)
Array
(
    [allow_call_time_pass_reference] =&gt; 0
    [allow_url_fopen] =&gt; 1
    ...
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.ini-get-all-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    <span class="function"><strong>ini_get_all()</strong></span> ignores &quot;array&quot; ini options such as
    <code class="literal">pdo.dsn.<span class="replaceable">*</span></code>.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ini-get-all-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><a href="configuration.changes.php" class="xref">Wie man Konfigurationseinstellungen &auml;ndert</a></li>
    <li><span class="function"><a href="function.ini-get.php" class="function" rel="rdfs-seeAlso">ini_get()</a> - Gets the value of a configuration option</span></li>
    <li><span class="function"><a href="function.ini-restore.php" class="function" rel="rdfs-seeAlso">ini_restore()</a> - Restores the value of a configuration option</span></li>
    <li><span class="function"><a href="function.ini-set.php" class="function" rel="rdfs-seeAlso">ini_set()</a> - Sets the value of a configuration option</span></li>
    <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.phpinfo.php" class="function" rel="rdfs-seeAlso">phpinfo()</a> - Liefert Informationen zur PHP-Konfiguration</span></li>
    <li><span class="methodname"><a href="reflectionextension.getinientries.php" class="methodname" rel="rdfs-seeAlso">ReflectionExtension::getINIEntries()</a> - Gets extension ini entries</span></li>
   </ul>
  </p>
 </div>


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