Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

What is the difference between the functions unlink and unset?

PHP Interview Question
PHP Interview Question

Answer:

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.

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
How can we extract string abc.com from a string http://info@abc.com using regular expression of php?How come the code works, but does not for two-dimensional array of mine?