The PHP manual says 'unset() destroys the specified variables.' It has the following example:
<?php
function destroy_foo()
{
global $foo;
unset($foo);
}
$foo = 'bar';
destroy_foo();
echo $foo;
?>
The above code will output:
bar
So what has 'unset' done? Don't get it. Please explain.