What is the difference between the functions UNLINK and UNSET ?
In : BCA Subject : PHP and MySQL- To delete a file, use unlink. unset is a method of erasing a previously declared variable.
- Unset can be used to remove a variable's value or the contents of a file, but unlink deletes the file.
- You can use the unset() or session_destroy() functions to erase some session data.
-
To liberate the provided session variable, use the unset() function.