PHP unset()
The PHP unset() function can be written as the below syntax. The output: CodedTag.com Tutorials Notice: Undefined variable: var in D:\xampp\htdocs\site-1\index.php on line 5 The unset() is a built-in PHP function used to destroy or delete the given variable. This function doesn’t return anything because it is a void type, which means there is no