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 difference between apache and tomcat?
What is the difference between php4 and php5?
Explain about require and include function?
How to get a random value from a php array?
What is the purpose of using php?
What is list in PHP?
How many types of php are there?
When do sessions end?
Write down the code for save an uploaded file in php.
What are the __construct() and __destruct() methods in a php class?
Explain the syntax for ‘foreach’ loop with example.
Why did you choose this particular career path?
What are session variables in php?
What is empty php?
Can we embedded directly PHP code into XHTML document? State Whether True or False?