unset() Function : Variable Set Unset « Language Basics « PHP






unset() Function

<html>
<head>
     <title>Unset()</title>
</head>
<body>
<?php
     $authorJ = "A";
     $authorC = "B";
     $jeremy = &$authorJ;
     $charlie = &$authorC;
   
     print("$authorJ <br/>");
     unset($jeremy);
     print($authorJ . " or " . $jeremy . "<br />");
   
     print("$authorC <br />");
     unset($charlie);
     unset($authorC);
     print($authorC);
?>
</body>
</html>
           
       








Related examples in the same category

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