unset() function is used to destroy the variable value.
Example
$var="w3codeguru.com";
echo "Before using unset() value of $var";
unset($var);
echo "After using unset() value of $var";
Output
Before using unset() value of w3codeguru.com
After using unset() value of
Copyright ©2022 coderraj.com. All Rights Reserved.