What is the difference between the functions unlink and unset?Unlink It is used to delete the file used in the context.
Example : unlink('test.html');
Unset It is used to unset or destroy the variable.
Example : unset($var);
If a global variable is attempted to "unset" inside a function, the local variable is destroyed.
|