What is the difference between the functions unlink and unset?

Answer Posted / shilpa yogesh agrawal

The function unlink() is to remove a file, where as unset()
is used for destroying a variable that was declared earlier.
unset() empties a variable or contents of file.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to return ascii value of character in php?

800


Where are php configuration settings stored?

765


How can php and javascript interact?

989


What is cakephp framework?

783


Is php 7 backwards compatible?

807


What beforeFilter() is used?

874


How be the result set of mysql handled in php?

911


How to count all the lines of code in a directory and sub folder?

737


How to Pass JSON Data in a URL using CURL in PHP?

795


What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

774


What is magic function in php?

776


What is factory pattern in php?

729


How can cross site request forgery csrf be prevented?

726


How a variable is declared in php?

738


Is jquery better than javascript?

773