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


Please Help Members By Posting Answers For Below Questions

Does php support multiple inheritances?

531


Why and where do we use htaccess?

534


What is the use of is_array() and in_array()?

545


Why php is used with mysql?

535


What is get method in java?

535






What are the rules to determine the “truth” of any value which is not already of the boolean type?

519


Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

541


Is php easier than node?

521


How can you encrypt password using php?

517


Can I use node js with php?

531


How do you debug php?

564


What are the advantages of stored procedures?

554


What is the main difference between require() and require_once()?

521


What is the definition of a session?

537


Is php faster than nodejs?

491