unset() function is used to destroy a variable.

<?php
$var1 = 10;
unset($var1);
echo $var1;
?>

Output:

 // Notice: Undefined variable: var1