Unset or Destroys Variable in PhP
January 7th, 2008
No comments
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 ...








