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
What is the importance of "method" attribute in a html form?
Do you know how to declare an array in php?
Is it more secure to use cookies to trfer session ids?
How many functions are there in php?
Explain converting an object?
What is variable declaration?
How is it possible to remove escape characters from a string?
What is $globals php?
How do I stop a php script?
Do you know what is the function func_num_args() used for?
How can you pass a variable by reference?
What is the main difference between php 4 and php 5?
What is the difference between session_unregister() and session_unset()?
What are the different data types in javascript?
What is the use of mysql_real_escape_string in php?