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 retrieve the original query string?

781


Do you know what is use of count() function in php?

730


How to create an array in php?

790


Does php has a future?

683


How do I escape data before storing it in the database?

765


How to terminate the execution of a script in PHP?

789


How can you send email in php?

756


Why do we use csrf token?

688


What is the name of scripting engine in php?

931


Describe which programming language does php parallel to?

699


How to remove leading and trailing spaces from user input values?

762


Tell me how can we automatically escape incoming data?

699


What is the function func_num_args() used for?

725


Write a select query that will be displayed the duplicated site name and how many times it is duplicated?

783


What is json php?

758