<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.yaconf.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'yaconf.has.php',
    1 => 'Yaconf::has',
    2 => 'Check whether a configuration value exists',
  ),
  'up' => 
  array (
    0 => 'class.yaconf.php',
    1 => 'Yaconf',
  ),
  'prev' => 
  array (
    0 => 'yaconf.get.php',
    1 => 'Yaconf::get',
  ),
  'next' => 
  array (
    0 => 'book.taint.php',
    1 => 'Taint',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaconf/yaconf/has.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaconf.has" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yaconf::has</h1>
  <p class="verinfo">(PECL yaconf &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Yaconf::has</span> &mdash; <span class="dc-title">Check whether a configuration value exists</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaconf.has-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="modifier">function</span> <span class="methodname"><strong>Yaconf::has</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Determines whether a configuration value exists under
   <code class="parameter">name</code>, which uses the same dot notation as
   <span class="methodname"><a href="yaconf.get.php" class="methodname">Yaconf::get()</a></span>: for example, <code class="literal">&quot;app.name&quot;</code>
   or, since Yaconf 1.2.0, <code class="literal">&quot;users.database.master&quot;</code> for
   files in sub-directories.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yaconf.has-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">name</code></dt>
    <dd>
     <p class="simpara">
      The configuration name to look up, using dot notation to
      traverse nested keys, for example <code class="literal">&quot;app.name&quot;</code>
      or <code class="literal">&quot;users.database.master&quot;</code>.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-yaconf.has-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if a configuration value exists at
   <code class="parameter">name</code>, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-yaconf.has-examples">
  <h3 class="title">Örnekler</h3>
  <p class="simpara">
   The examples below assume an <var class="filename">app.ini</var> placed
   in the directory configured with <code class="literal">yaconf.directory</code>,
   holding the keys <code class="literal">name=&quot;shop&quot;</code> and
   <code class="literal">debug=0</code>.
  </p>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="methodname"><strong>Yaconf::has()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">Yaconf</span><span style="color: #007700">::</span><span style="color: #0000BB">has</span><span style="color: #007700">(</span><span style="color: #DD0000">"app.name"</span><span style="color: #007700">));     </span><span style="color: #FF8000">// bool(true)
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">Yaconf</span><span style="color: #007700">::</span><span style="color: #0000BB">has</span><span style="color: #007700">(</span><span style="color: #DD0000">"app.missing"</span><span style="color: #007700">));  </span><span style="color: #FF8000">// bool(false)

// useful to distinguish a stored empty value from a missing key,
// where Yaconf::get() would return the same default for both
</span><span style="color: #007700">if (</span><span style="color: #0000BB">Yaconf</span><span style="color: #007700">::</span><span style="color: #0000BB">has</span><span style="color: #007700">(</span><span style="color: #DD0000">"app.debug"</span><span style="color: #007700">)) {
    </span><span style="color: #0000BB">$debug </span><span style="color: #007700">= (bool) </span><span style="color: #0000BB">Yaconf</span><span style="color: #007700">::</span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #DD0000">"app.debug"</span><span style="color: #007700">);
}
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-yaconf.has-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="yaconf.get.php" class="methodname" rel="rdfs-seeAlso">Yaconf::get()</a> - Retrieve a configuration value by name</span></li>
    <li><span class="methodname"><a href="yaconf.debug-info.php" class="methodname" rel="rdfs-seeAlso">Yaconf::__debug_info()</a> - Inspect how a configuration value is stored</span></li>
   </ul>
  </p>
 </div>


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