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
Does php support multiple inheritances?
Why and where do we use htaccess?
What is the use of is_array() and in_array()?
Why php is used with mysql?
What is get method in java?
What are the rules to determine the “truth” of any value which is not already of the boolean type?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
Is php easier than node?
How can you encrypt password using php?
Can I use node js with php?
How do you debug php?
What are the advantages of stored procedures?
What is the main difference between require() and require_once()?
What is the definition of a session?
Is php faster than nodejs?