What is the difference between the functions unlink and unset?
Answer Posted / prahallada
unlink() is a function for file system handling.
It will simply delete the file in context.
Unset () is used to destroy a variable in PHP. In can be
used to remove a single variable, multiple variables, or an
element from an array. It is phrased as Unset ($remove).
Also Known As: Unset Variable, Destroy Variable
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the use of trim in php?
What is magic quotes?
What is the use of limit in mysql?
Write a program to upload a file in php?
How long is session timeout?
What is the purpose of the php empty function?
How to retrieve the original query string?
What are the different types of PHP arrays?
How is it possible to parse a configuration file?
Where do we use get and post?
What is Different between Joomla And Magento?
What is framework in php?
What is substr in php?
How can we display the output directly to the browser?
What is the difference between == and === in php?