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 |
suppose if u want to pass session value using cookies onlu.. what changes i've to made in php.ini file?
What is php resource type?
How do you define a constant in php?
which function used to get the file name in php?
How to create reusable code in php?
What is the difference between query and question?
What is PHP?
What is phpsessid?
How can we get the browser properties using PHP?
4 Answers Google, Pollux Softech,
Tell me what are the __construct() and __destruct() methods in a php class?
1.What are the difference between echo , print , print_r ? else this 3 can we show output to a client in some other way?
How to include a file code in different files in php?