What is the difference between the functions unlink and unset?
Answers were Sorted based on User's Feedback
Answer / umapathi
unlink-deletes the file
unset-unsets the variable
| Is This Answer Correct ? | 50 Yes | 2 No |
Answer / kiran
unlink() is used to delete a file
unset() is used to delete a variable
| Is This Answer Correct ? | 44 Yes | 5 No |
Answer / jeyaprabhu
Unlink() is a function for Delete the file.
unset is a function for delete the variable.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / n.boopathi
UNLINK:unlink-deletes the file.
UNSET:Unset is function which is use the unset (destroys OR
delete) the
specified variable.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / 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 |
Answer / manish kumar
Unset is function which is use the unset (destroys) the
specified variable but unlink is also a function which is
used to deletes a file.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / pinky
unlink is used to delete the file where as
unset is used to delete the variable and the content of file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / suprita pandey
Unlink() :-remove file from server.
unlink(' /path/file.phtml');
Unset() :-remove the variable.
unset($variableName);
| Is This Answer Correct ? | 0 Yes | 0 No |
what is constructor
Give any ten basic functions in PHP?
How do I see how many pages per session in google analytics?
Write a php function to convert all null values to blank?
What are the advantages of php mysql?
What is php explain?
What is the use of mvc in php?
How to check an key is exists in array?
Can anybody plz tell me if there any recruitment on php plz mail to vasudev.adepu@gmail.com.i had completed M.SC(MATHS) in 2007 . trying to get a job on php. i have good knowledge on PHP/MYSQL
How arrays are passed through arguments?
How to know user has read the email-php?
How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the application should restrict them from login.