Interview Questions

What is the difference between the functions unlink and unset?

PHP Interview Questions and Answers


(Continued from previous question...)

What is the difference between the functions unlink and unset?

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.

(Continued on next question...)

Other Interview Questions