simple meaning of unset in php

Unset is used for destroys the specified variables.
example:
<?php

function destroy()
{
global $test;
unset($test);
}

$test = 'hai';
destroy();
echo $test ;
?>
it will get output :hai