PHP - Difference between the functions unlink and unset.

Difference between the functions unlink and unset.

Unlink is used to delete the file used in the context.

Example :
unlink('test.html');

Unset 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 - Explain with an example how to insert javascript in php code.
Explain how to insert javascript in php code - JavaScript can be inserted by specifying the language as...
PHP - Is it possible to send HTML mail with php?
Is it possible to send HTML mail with php? - Yes, using the mail() function of PHP, HTML emails can be sent.....
PHP - Explain how to use PGP with PHP
Explain how to use PGP with PHP - In most cases GnUPG(GNU Privacy Guard) is recommended rather than Pretty Good Privacy...
Post your comment