PHP Unset via References

amarneZes

New Member
I have been reading the PHP manual about references and something is confusing me. It says that references are not pointers to memory addresses but rather... \[quote\] Instead, they are symbol table aliases.\[/quote\]Isn't this essentially a pointer if the reference points to the symbol table entry which then points to a memory address?Edit:Some great answers. Just want to pop this in here... How would I unset the variable for which another is pointing to?\[code\]$var = "text";$ref =& $var;unset($ref);\[/code\]It looks like for this to work, I need to unset \[code\]$var\[/code\] as well so the GC removes it.
 
Back
Top