Unset or Destroys Variable in PhP
unset() destroys the specified variables.
<?php
// remove a single variable
unset($a);// remove a single element in an array
unset($my_array['element']);// remove multiple variables
unset($a, $b, $c);
?>
The behavior of unset() inside of a function can vary depending on what type of variable you are attempting to destroy.
In can be used to remove a single variable, multiple variables, or an element from an array. It is used as unset ($remove).















