Unsets a variable.
unset() destroys one or more variables and deallocates the memory associated with them.
<?php
$a = "Some data";
unset($a);
if (!isset($a)) {
print "\$a is no longer available";
}
?>$a is no longer available unset() is used to remove the variable $a that had just been set.