unset() destroys the specified variables. unlink is a function for file system handling, unlink is used to delete files. ... For example you have uploaded a file, and you have to delete that file from the php code then you can use unlink function to delete that file. While unset is used for variable and array.
|