<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionextension.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'reflectionextension.getinientries.php',
    1 => 'ReflectionExtension::getINIEntries',
    2 => '获取 ini 配置',
  ),
  'up' => 
  array (
    0 => 'class.reflectionextension.php',
    1 => 'ReflectionExtension',
  ),
  'prev' => 
  array (
    0 => 'reflectionextension.getfunctions.php',
    1 => 'ReflectionExtension::getFunctions',
  ),
  'next' => 
  array (
    0 => 'reflectionextension.getname.php',
    1 => 'ReflectionExtension::getName',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/reflection/reflectionextension/getinientries.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionextension.getinientries" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionExtension::getINIEntries</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionExtension::getINIEntries</span> &mdash; <span class="dc-title">获取 ini 配置</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionextension.getinientries-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionExtension::getINIEntries</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   获取扩展在 ini 配置文件中的配置。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionextension.getinientries-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionextension.getinientries-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回数组，数组索引是配置名称，值是配置值。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionextension.getinientries-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 <span class="methodname"><strong>ReflectionExtension::getINIEntries()</strong></span> 示例</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$ext </span><span style="color: #007700">= new </span><span style="color: #0000BB">ReflectionExtension</span><span style="color: #007700">(</span><span style="color: #DD0000">'mysql'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$ext</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getINIEntries</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>以上示例的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Array
(
    [mysql.allow_persistent] =&gt; 1
    [mysql.max_persistent] =&gt; -1
    [mysql.max_links] =&gt; -1
    [mysql.default_host] =&gt; 
    [mysql.default_user] =&gt; 
    [mysql.default_password] =&gt; 
    [mysql.default_port] =&gt; 
    [mysql.default_socket] =&gt; 
    [mysql.connect_timeout] =&gt; 60
    [mysql.trace_mode] =&gt; 
    [mysql.allow_local_infile] =&gt; 1
    [mysql.cache_size] =&gt; 2000
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionextension.getinientries-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ini-get-all.php" class="function" rel="rdfs-seeAlso">ini_get_all()</a> - 获取所有配置选项</span></li>
    <li><span class="methodname"><a href="reflectionextension.getconstants.php" class="methodname" rel="rdfs-seeAlso">ReflectionExtension::getConstants()</a> - 获取常量</span></li>
   </ul>
  </p>
 </div>


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