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 are new features in php 7?
What are the difference between echo and print?
Are php sessions secure?
What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?
Tell me how is it possible to propagate a session id?
Explain some most commonly use string functions in php?
How can we get ip address of a client in php?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
Is null function in php?
How could I install codeignitor ?
What are magic methods?
What is the purpose of break and continue statement?
How are php sessions stored?
How to pass an argument to a function?
Is php 7 backwards compatible?