What is the difference between the functions UNLINK
and UNSET?

Answers were Sorted based on User's Feedback



What is the difference between the functions UNLINK and UNSET? ..

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

What is the difference between the functions UNLINK and UNSET? ..

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

What is the difference between the functions UNLINK and UNSET? ..

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

What is the difference between the functions UNLINK and UNSET? ..

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

What is the difference between the functions UNLINK and UNSET? ..

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

What is the difference between the functions UNLINK and UNSET? ..

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

What is the difference between the functions UNLINK and UNSET? ..

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

What is the difference between the functions UNLINK and UNSET? ..

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

Post New Answer

More PHP Interview Questions

What is str_replace()?

0 Answers  


What is the ioncube php loader?

0 Answers  


What is the use of trim in php?

0 Answers  


What is uri routing?

0 Answers  


Tell me how can we determine whether a variable is set?

0 Answers  






What is session and why do we use it?

0 Answers  


What are the php functions?

0 Answers  


What is the purpose of the '.myd' file extension? What do thes file contain?

0 Answers  


How do you add a joomla Template in admin panel of joomla? Please mention the steps

3 Answers   Cognizant, T3 Softwares,


how can i upload only pdf files in my website? files has not a pdf extension mantioned

0 Answers  


What is prepared statement in php?

0 Answers  


List out the predefined classes in PHP?

11 Answers  


Categories