unset()¶
unset() removes a variable. This feature used to be available as a function call unset() or as a type cast (unset). The type-cast was removed in PHP 7.2.
<?php
$a = 1;
unset($a);
var_dump(isset($a)); // false
?>
Related : Variables
The definitive reference with all things PHP, and their definitions.
Contents: