<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.references.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'language.references.unset.php',
    1 => 'Unsetting References',
    2 => 'Unsetting References',
  ),
  'up' => 
  array (
    0 => 'language.references.php',
    1 => 'References Explained',
  ),
  'prev' => 
  array (
    0 => 'language.references.return.php',
    1 => 'Returning References',
  ),
  'next' => 
  array (
    0 => 'language.references.spot.php',
    1 => 'Spotting References',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/references.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="language.references.unset" class="sect1">
   <h2 class="title">Unsetting References</h2>
   <p class="para">
    When you unset the reference, you just break the binding between
    variable name and variable content. This does not mean that
    variable content will be destroyed. For example:
    <div class="informalexample">
     <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$a </span><span style="color: #007700">= </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$b </span><span style="color: #007700">=&amp; </span><span style="color: #0000BB">$a</span><span style="color: #007700">;<br />unset(</span><span style="color: #0000BB">$a</span><span style="color: #007700">); <br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
     </div>

    </div>
    won&#039;t unset <var class="varname">$b</var>, just <var class="varname">$a</var>. 
   </p>
   <p class="simpara">
    Again, it might be useful to think about this as analogous to the Unix
    <strong class="command">unlink</strong> call.
   </p>
  </div><?php manual_footer($setup); ?>