What’s the difference between unset() and unlink() ? unset() sets a variable to “undefined” while unlink() deletes a file we pass to it from the file system.