|
| HOW TO USE THE unset() FUNCTION IN PHP
The unset() function is used to destroy specified variables.It can be used to destroy single variables, multiple variables or an element in an array.
Example: Destroy Single Variable
<?
unset($username);
?>
Example: Destroy Multiple Variables
<?
unset($username, $email, $name);
?>
Example: Destroy An Element From An Array
<?
unset($color['car']);
?>
|
|