What is the difference between the functions UNLINK
and UNSET?
Answers were Sorted based on User's Feedback
Answer / subrat
unlink: is used to delete a file
unset is used to destroy an eralier declared variable
| Is This Answer Correct ? | 31 Yes | 1 No |
Answer / ramse
Unset can be used for empty the value of variable or
contents of file but unlink destroy file.
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / kirti
Function Unlink is used for deleting a file.
Function Unset is used for variable as to unset the variable
and free d memory allocated.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / adarsh katiyar
If you want delete some session data, you can use the
unset() or the session_destroy() function.
The unset() function is used to free the specified session
variable.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / ramtej
UNLINK function is used to delete a file,
UNSET function is used to free the specified session variable
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / raju kumar
unlink used for delete file from directory and unset used
for destroy variable like session.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / vineet sharma
unset() function is to destroy the temporary declared variable.
Unlink function is used to remove the link from the file
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ramthiraviya
unlink():: is a function for file system handling.it will
simply file in context
unset():: is a function for variable management.it will make
a variable undefined
| Is This Answer Correct ? | 4 Yes | 5 No |
How to get tabels from database in php andd display it in the table form using codelgniter? plz help me
What are major variables in research?
What are the advantages of PHP over HTML?
11 Answers Infosys, Torque Infotech,
What are the different functions in sorting an array?
What is purpose of @ in Php?
Write a PHP code to print following number pattern: 123 456 789
What is the difference between exception::getmessage and exception::getline?
What is difference between print and echo in php?
Tell me how to find the length of a string?
Why php language is used?
Explain what does $_files means?
Do you know what is the difference between the include() and require() functions?