<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.runkit7.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.runkit7-constant-add.php',
    1 => 'runkit7_constant_add',
    2 => 'Similar to define(), but allows defining in class definitions as well',
  ),
  'up' => 
  array (
    0 => 'ref.runkit7.php',
    1 => 'runkit7 İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'ref.runkit7.php',
    1 => 'runkit7 İşlevleri',
  ),
  'next' => 
  array (
    0 => 'function.runkit7-constant-redefine.php',
    1 => 'runkit7_constant_redefine',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/runkit7/functions/runkit7-constant-add.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.runkit7-constant-add" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">runkit7_constant_add</h1>
  <p class="verinfo">(PECL runkit7 &gt;= Unknown)</p><p class="refpurpose"><span class="refname">runkit7_constant_add</span> &mdash; <span class="dc-title">
   Similar to define(), but allows defining in class definitions as well
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.runkit7-constant-add-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>runkit7_constant_add</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$constant_name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$newVisibility</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.runkit7-constant-add-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">constant_name</code></dt>
    <dd>
     <span class="simpara">
       Name of constant to declare.  Either a string to indicate a global constant,
       or <code class="literal">classname::constname</code> to indicate a class constant.
     </span>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <span class="simpara">
       NULL, Bool, Long, Double, String, Array, or Resource value to store in the new constant.
     </span>
    </dd>
   
   
    <dt><code class="parameter">newVisibility</code></dt>
    <dd>
     <span class="simpara">
      Visibility of the constant, for class constants. Public by default.
      One of the <strong><code><a href="runkit7.constants.php#constant.runkit7-acc-return-reference">RUNKIT7_ACC_<span class="replaceable">*</span></a></code></strong> constants.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.runkit7-constant-add-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Başarı durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.runkit7-constant-add-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.define.php" class="function" rel="rdfs-seeAlso">define()</a> - Bir isimli sabit tanımlar</span></li>
   <li><span class="function"><a href="function.runkit7-constant-redefine.php" class="function" rel="rdfs-seeAlso">runkit7_constant_redefine()</a> - Redefine an already defined constant</span></li>
   <li><span class="function"><a href="function.runkit7-constant-remove.php" class="function" rel="rdfs-seeAlso">runkit7_constant_remove()</a> - Remove/Delete an already defined constant</span></li>
  </ul>
 </div>


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