Using the unset() Function : unset « Data Type « PHP






Using the unset() Function

 
<?php
    $myvar = "This is a string";
    unset($myvar);        // Destroy the variable
?>
  
  








Related examples in the same category

1.Removing Session Data
2.Deleting an object
3.void unset ( mixed var [, mixed var [, mixed ...]] )
4.Removing Elements
5.Removing Elements from Arrays