Your idea about unsetting all referenced variables at once is right,just a tiny note that you changed NULL with unset()...again, unset affects only one name and NULL affects the data,which is kept by all the three names...

$foobar = &$bar; // create a new reference between $foobar and $bar$foobar = "hello $foobar"; // alter $foobar and with that $bar and $fooecho $foobar; //output : hello I am Frankunset($bar); // unset $bar and destroy the reference$bar = "dude!"; // assign $bar/* even though the reference between $bar and $foo is destroyed, and also the reference between $bar and $foobar is destroyed, there is still a reference between $foo and $foobar. */echo $foo; // output : hello I am Frankecho $bar; // output : due!?>

clerca at inp-net dot eu dot org"If you have a lot of references linked to the same contents, maybe it could be useful to do this : <?php$a = 1;$b = & $a;$c = & $b; // $a, $b, $c reference the same content '1'

$b = NULL; // All variables $a, $b or $c are unset?>

"

------------------------

NULL will not result in unseting the variables.Its only change the value to "null" for all the variables.becouse they all points to the same "part" in the memory.