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

Where is session value stored?

558


Tell me what is the use of mysql_real_escape_string() function?

535


How can i execute PHP File using Command Line?

526


What is properties of class?

587


How to get a total number of rows available in the table?

483






How can we access the data sent through the url with the post method?

503


How to check an key is exists in array?

552


How to get the total number of values in an array?

521


How to check a variable is an array or not in php?

509


Where are php configuration settings stored?

529


What are the different opening and closing tags available in PHP?

571


Differentiate echo vs. Print statement.

537


How to create a directory?

615


What function should you use to join array elements with a glue string?

546


What is in a cookie?

549