PHP - What is the difference between the functions unlink and unset?

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.
PHP - What is zend engine?
Zend engine - Zend Engine is used internally by PHP as a complier and runtime engine..
PHP - What is the difference between Split and Explode?
PHP - Both the functions are used to Split a string. However, Split is used to split.....
PHP - What is the difference between echo and print statement?
PHP - Echo can accept multiple expressions while print cannot.....
Post your comment