What is the difference between the functions unlink and unset?
Answers were Sorted based on User's Feedback
Answer / rajan vardawaj
unlink() is a function for file system handling. It will
simply delete the file in context. unset() is a function for
variable management. It will make a variable undefined.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / shilpa yogesh agrawal
The function unlink() is to remove a file, where as unset()
is used for destroying a variable that was declared earlier.
unset() empties a variable or contents of file.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ashwini ahire
Unlink : Deletes file from specified path
Unset : Destroys the varriable
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rajat sharma
unlink() means that to delete the files
and
unset() destroys the specified variables.
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / jitendra k jain
unlink is a function to delete a file from specified location where as unset() is a function that will distroy memory allocated to that variable. it means it will remove variable from memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rajat sharma
unlink() means that to delete the files
and
unset() destroys the specified variables.
| Is This Answer Correct ? | 0 Yes | 1 No |
What are some of the advanced features of php?
Create a PHP web script with the following attributes: on start, three HTML form elements are shown: an string input field, a checkbox field, a dropdown/pull down list with 5 elements and a submit button. On submission, the form should be redisplayed (while remaining all options/inputs as the user has selected/entered them). Additionally, the selections/inputs of the user should be displayed in text. Please solve this without the use of any external libraries.
What are helpers in php?
What is php glob?
What are the new features available in php 7?
What is the tags in PHP is not a valid way to begin and end a PHP code block?
What are the 5 types of data?
How can you declare the array in php?
What are majic methords in php?
how to change the div background color on every refresh..guys can u help me out.
What is the correct php command to use to catch any error messages within the code?
What are the advantages of object-oriented programming in php?