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 / 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

What is the difference between the functions unlink and unset?..

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

What is the difference between the functions unlink and unset?..

Answer / ashwini ahire

Unlink : Deletes file from specified path

Unset : Destroys the varriable

Is This Answer Correct ?    1 Yes 0 No

What is the difference between the functions unlink and unset?..

Answer / rajat sharma

unlink() means that to delete the files
and
unset() destroys the specified variables.

Is This Answer Correct ?    2 Yes 2 No

What is the difference between the functions unlink and unset?..

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

What is the difference between the functions unlink and unset?..

Answer / rajat sharma

unlink() means that to delete the files
and
unset() destroys the specified variables.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More PHP Interview Questions

What is the difference between the include() and require() functions?

1 Answers  


What are the characteristics of php?

1 Answers  


Explain about getters and setters in php?

1 Answers  


How do you get the Browser information?

3 Answers   Life Infotech,


how to run PHP in command line?

8 Answers   InfoShore, Ramp Green, Xtreeme,


Which function Returns the time of sunrise for a given day / location in PHP.

1 Answers  


What are the rules to declare a php variables?

1 Answers  


What is substr() in php? And how it is used?

1 Answers  


Inside a php function, what param needs to be set in order to access a global variable?

1 Answers  


Explain the difference between $var and $$var?

1 Answers  


How would you impletement download and upload a file in php

2 Answers   A1 Technology,


Tell me which function gives us the number of affected entries by a query?

1 Answers  


Categories