Unset is used to delete(destroy) a variable whereas unlink used to delete a file.
What is the difference between include() and require()
include() function gives the warning when specified file not found but all script will be continually executed. e.g. include("filename.php"); echo "hello";
?> output:- hello In the above example if file not found then it gives warning and print the hello because warning does not stop script and echo will be execute. require() function gives the fatal error when specifies file is not found and stop the script. e.g. require("filename.php"); echo "hello"; ?> output:- it gives fatal error and stop the script ,echo will not be executed.