Difference between unset() and unlink() Given Below

S.no.unset()unlink()
1Used a variablesUsed a file paths
2it is used to Removes variable it is used to Deletes file 
3No return valueReturns true on success, false on failure
4unset($variable);unlink('example.txt');