<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.get-cfg-var.php',
    1 => 'get_cfg_var',
    2 => 'Gets the value of a PHP configuration option',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'Функції налаштування та отримання інформації про PHP',
  ),
  'prev' => 
  array (
    0 => 'function.gc-status.php',
    1 => 'gc_status',
  ),
  'next' => 
  array (
    0 => 'function.get-current-user.php',
    1 => 'get_current_user',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/info/functions/get-cfg-var.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.get-cfg-var" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_cfg_var</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">get_cfg_var</span> &mdash; <span class="dc-title">Gets the value of a PHP configuration option</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.get-cfg-var-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>get_cfg_var</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$option</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<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">
   Gets the value of a PHP configuration <code class="parameter">option</code>.
  </p>
  <p class="para">
   This function will not return configuration information set when the PHP
   was compiled, or read from an Apache configuration file.
  </p>
  <p class="para">
   To check whether the system is using a <a href="configuration.file.php" class="link">configuration file</a>, try retrieving the
   value of the cfg_file_path configuration setting. If this is available, a
   configuration file is being used.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.get-cfg-var-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       The configuration option name.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-cfg-var-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns the current value of the PHP configuration variable specified by
   <code class="parameter">option</code>, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if an error occurs.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.get-cfg-var-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ini-get.php" class="function" rel="rdfs-seeAlso">ini_get()</a> - Отримує значення конфігураційного параметра</span></li>
    <li><span class="function"><a href="function.ini-get-all.php" class="function" rel="rdfs-seeAlso">ini_get_all()</a> - Отримує всі параметри конфігурації</span></li>
   </ul>
  </p>
 </div>


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