<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/reserved.interfaces.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'class.weakreference.php',
    1 => 'WeakReference',
    2 => 'WeakReference sınıfı',
  ),
  'up' => 
  array (
    0 => 'reserved.interfaces.php',
    1 => '&Ouml;ntanımlı Aray&uuml;zler ve Sınıflar',
  ),
  'prev' => 
  array (
    0 => 'fiber.getcurrent.php',
    1 => 'Fiber::getCurrent',
  ),
  'next' => 
  array (
    0 => 'weakreference.construct.php',
    1 => 'WeakReference::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'language/predefined/weakreference.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.weakreference.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.weakreference" class="reference">

 <h1 class="title">WeakReference sınıfı</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 7 &gt;= 7.4.0, PHP 8)</p>


  <div class="section" id="weakreference.intro">
   <h2 class="title">Giriş</h2>
   <p class="para">
    Zayıf gönderimler, programcının, nesnenin yok edilmesini engellemeyen
    bir nesneye gönderim tutmasına izin verir. Önbellek benzeri yapıları
    gerçeklemek için kullanışlıdır.
   </p>
   <p class="para">
    <span class="classname"><strong class="classname">WeakReference</strong></span> örnekleri dizileştirilemez.
   </p>
  </div>


  <div class="section" id="weakreference.synopsis">
   <h2 class="title">Sınıf Sözdizimi</h2>


   <div class="classsynopsis"><div class="classsynopsisinfo">
    
     <span class="modifier">final</span>
     <span class="modifier">class</span> <strong class="classname"><strong class="classname">WeakReference</strong></strong>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Yöntemler */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="weakreference.construct.php" class="methodname">__construct</a></span>()</div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="weakreference.create.php" class="methodname">create</a></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$object</code></span>): <span class="type"><a href="class.weakreference.php" class="type WeakReference">WeakReference</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="weakreference.get.php" class="methodname">get</a></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.object.php" class="type object">object</a></span></span></div>

   }</div>


  </div>

  <div class="section" id="weakreference.examples">
   <h2 class="title">- WeakReference Örnekleri</h2>
   <p class="para">
    <div class="example" id="weakreference.basic-example">
     <p><strong>Örnek 1 - Temel WeakReference Kullanımı</strong></p>
     <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$obj </span><span style="color: #007700">= new </span><span style="color: #0000BB">stdClass</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$weakref </span><span style="color: #007700">= </span><span style="color: #0000BB">WeakReference</span><span style="color: #007700">::</span><span style="color: #0000BB">create</span><span style="color: #007700">(</span><span style="color: #0000BB">$obj</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$weakref</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">());<br />unset(</span><span style="color: #0000BB">$obj</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$weakref</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
     </div>

     <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
     <div class="example-contents screen">
<div class="cdata"><pre>
object(stdClass)#1 (0) {
}
NULL
</pre></div>
     </div>
    </div>
   </p>
  </div>

 </div>

 





 





 






<h2>İçindekiler</h2><ul class="chunklist chunklist_reference"><li><a href="weakreference.construct.php">WeakReference::__construct</a> — &Ouml;rneklemeye izin vermeyen kurucu</li><li><a href="weakreference.create.php">WeakReference::create</a> — Yeni bir zayıf g&ouml;nderim oluşturur</li><li><a href="weakreference.get.php">WeakReference::get</a> — Zayıf g&ouml;nderimli bir nesne d&ouml;nd&uuml;r&uuml;r</li></ul>
</div>
<?php manual_footer($setup); ?>