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

Why is php used for web development?

505


What is the scope of a variable defined in a function?

557


In php, how to redirect from one page to another page?

517


How can we check the value of a given variable is alphanumeric?

545


What are the functions of string?

529






What is the use of htmlentities in php?

509


How to access a Static Member of a Class in PHP?

517


What is the functionality of the functions strstr() and stristr()?

529


How to get a total number of rows available in the table?

489


What changes I have to do in php.ini file for file uploading?

567


How can I learn php fast?

554


Which function can be used to exit from the script after displaying the error message?

525


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

879


Are php variables global?

564


What is singleton design pattern in php?

562