downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<Returning ReferencesSpotting References>
Last updated: Thu, 26 Jun 2008

Unsetting References

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:

<?php
$a
= 1;
$b =& $a;
unset(
$a);
?>
won't unset $b, just $a.

Again, it might be useful to think about this as analogous to Unix unlink call.



add a noteadd a note User Contributed Notes
Unsetting References
There are no user contributed notes for this page.




<Returning ReferencesSpotting References>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs