unset() Function : Variable Set Unset « Language Basics « PHP
- PHP
- Language Basics
- Variable Set Unset
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