Unset variable : Variable Set Unset « Language Basics « PHP






Unset variable


<?
   $a="Hello there!";

   echo $a

   unset($a);

   echo $a; // Error: there is no variable $a
?>
           
       








Related examples in the same category

1.The isset() Function
2.IsSet variable
3.unset() Function
4.UnSet array element