Home >> PHP >> unset() function in PHP

unset() function in PHP

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

Post Your Comment

Next Questions
empty() function
What are function for controlling script execution
exit() function
die() function
fun_num_args() function
ereg_replace() function
ereg_ireplace() function
preg_match() function
preg_replace() function
File handling
fopen() function
fclose() function
fread() function
create the file
Check the file is available or not
Destroy the file
Write into the file
Create into folder
Remove a folder
touch() function
file_exits() function
unlink() function
fwrite() function
mkdir() function
rmdir() function

Copyright ©2022 coderraj.com. All Rights Reserved.