<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.taint.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.untaint.php',
    1 => 'untaint',
    2 => 'Remove the taint mark from strings',
  ),
  'up' => 
  array (
    0 => 'ref.taint.php',
    1 => 'Taint İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.taint.php',
    1 => 'taint',
  ),
  'next' => 
  array (
    0 => 'book.ds.php',
    1 => 'Data Structures',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/taint/functions/untaint.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.untaint" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">untaint</h1>
  <p class="verinfo">(PECL taint &gt;=0.1.0)</p><p class="refpurpose"><span class="refname">untaint</span> &mdash; <span class="dc-title">Remove the taint mark from strings</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.untaint-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">function</span> <span class="methodname"><strong>untaint</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter reference">&$string</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter reference">&...$strings</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Clears the taint mark on the given strings.
  </p>
  <p class="simpara">
   The mark is stored on the string itself, not on the variable, so this
   clears it for every variable sharing the same string at once. Use it to
   whitelist values you have validated yourself, for example after a strict
   allow-list check.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.untaint-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">string</code></dt>
    <dd>
     <p class="simpara">
      A variable holding the string to clean.
     </p>
    </dd>
   
   
    <dt><code class="parameter">strings</code></dt>
    <dd>
     <p class="simpara">
      Further variables to clean.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.untaint-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Always returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>. When
   <a href="taint.configuration.php#ini.taint.enable" class="link">taint.enable</a> is off, the
   function does nothing and still returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.untaint-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="function"><strong>untaint()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
$id </span><span style="color: #007700">= </span><span style="color: #DD0000">"42"</span><span style="color: #007700">;
</span><span style="color: #0000BB">taint</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">);
if (</span><span style="color: #0000BB">preg_match</span><span style="color: #007700">(</span><span style="color: #DD0000">'/^\d+$/'</span><span style="color: #007700">, </span><span style="color: #0000BB">$id</span><span style="color: #007700">)) {
    </span><span style="color: #FF8000">// strictly validated as digits: safe to trust
    </span><span style="color: #0000BB">untaint</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">);
}
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">is_tainted</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">));
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(false)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-function.untaint-notes">
  <h3 class="title">Notlar</h3>
  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
   <p class="simpara">
    Only string values can carry the mark; passing a non-string is a
    no-op.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.untaint-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.taint.php" class="function" rel="rdfs-seeAlso">taint()</a> - Mark strings as tainted</span></li>
    <li><span class="function"><a href="function.is-tainted.php" class="function" rel="rdfs-seeAlso">is_tainted()</a> - Check whether a string is tainted</span></li>
   </ul>
  </p>
 </div>


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