What is the difference between the functions unlink and unset?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the static variable in function useful for?

742


What is difference between web service and api?

737


What is isset post?

779


What are classes in php?

770


What does the php error 'parse error in php - unexpected t_variable at line x' means?

845


How is the comparison of objects done in php?

708


Is laravel an oop?

701


What is instantiation?

2001


What is a helper function?

760


What is constructors and destructors?

727


How is it possible to set an infinite execution time for php script?

750


What is namespace and use in php?

747


Can php variables have numbers?

781


Explain the ternary conditional operator in php?

835


What is PHP? Who is the father or inventor of PHP?

823